Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sheplu/eslint-config

sheplu0ISC0.120.0

A simple ESLint config based on recommended rules and stylistic formatting

eslint, eslintconfig, eslint-config, eslint-stylistic, eslint-recommended, stylistic, linter, sheplu, styleguide, javascript, code-style

readme

eslint-config

A shareable ESLint configuration for modern JavaScript and TypeScript projects.
It builds on top of ESLint’s recommended rules and stylistic plugin defaults,
with optional presets for React and Node.js.
Designed to be simple, consistent, and Prettier-compatible.

🚀 Install

This config only requires eslint and @stylistic/eslint-plugin.
Other plugins (TypeScript, React, Prettier) are optional, depending on your project.

# npm
npm i -D eslint @stylistic/eslint-plugin @sheplu/eslint-config

# yarn
yarn add -D eslint @stylistic/eslint-plugin @sheplu/eslint-config

# pnpm
pnpm add -D eslint @stylistic/eslint-plugin @sheplu/eslint-config

⚡ Usage

Once installed, enable the config by creating an eslint.config.js file (for ESLint v9+):

// eslint.config.js
import myConfig from "@sheplu/eslint-config";

export default defineConfig([
    {
        files: [ "**/*.{js,mjs,cjs}" ],
        plugins: { "@stylistic": stylistic },
        extends: [ myConfig ],
        languageOptions: {
            globals: globals.node,
        },
    }
]);

Or you can also load only the specific configuration you need:

// eslint.config.js
import myConfig from "@sheplu/eslint-config/src/stylistic.js";

export default defineConfig([
    {
        files: [ "**/*.{js,mjs,cjs}" ],
        plugins: { "@stylistic": stylistic },
        extends: [ myConfig ],
        languageOptions: {
            globals: globals.node,
        },
    }
]);

📝 Scripts

Add common lint commands to your package.json:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}