Shared ESLint Configuration for my projects. Version 2.0 and beyond uses the "flat config format".
npm install @epreston/eslint-config --save-dev
// 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",
},
},
];
# for validating a project configuration
npx eslint --inspect-config
# for validating this shared configuration
npx eslint --config index.js --inspect-config
Tool | Reference |
---|---|
ESLint | https://eslint.org |
Node.js | https://nodejs.org |
EditorConfig | https://editorconfig.org |
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/ |
This project is released under the MIT License.