Skip to content

📦 Shared ESLint config for my projects.

License

Notifications You must be signed in to change notification settings

epreston/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config

Shared ESLint Configuration for my projects. Version 2.0 and beyond uses the "flat config format".

NPM version License

Install

npm install @epreston/eslint-config --save-dev

Usage

// eslint.config.js
import sharedConfig from "@epreston/eslint-config";

/** @type { import('eslint').Linter.Config[] } */
export default [
  ...sharedConfig,

  // anything from here will override sharedConfig
  {
    rules: {
      "no-unused-vars": "warn",
    },
  },
];

Validation

# for validating a project configuration
npx eslint --inspect-config

# for validating this shared configuration
npx eslint --config index.js --inspect-config

Tools

Tool Reference
ESLint https://eslint.org
Node.js https://nodejs.org
EditorConfig https://editorconfig.org

References

Website Reference
Shareable Config https://eslint.org/docs/latest/extend/shareable-configs
Configure ESLint https://eslint.org/docs/latest/use/configure/
ESlint Rules https://eslint.org/docs/rules/

License

This project is released under the MIT License.