@epreston/eslint-config
v2.1.1
Published
Shared ESLint Configuration for my projects
Downloads
543
Readme
eslint-config
Shared ESLint Configuration for my projects. Version 2.0 and beyond uses the "flat config format".
Install
npm install @epreston/eslint-config --save-dev
Usage
// eslint.config.js
import sharedConfig from "@epreston/eslint-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.