Ensure eslint all rules are sorted, not deprecated, and included
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install "@cto.af/eslint-plugin-meta
:
npm install "@cto.af/eslint-plugin-meta --save-dev
Add eslint-meta
to the plugins section of your eslint.config.js
configuration file:
import meta from '@cto.af/eslint-plugin-meta';
export default [
{
files: [
'eslint.config.js'
],
...meta.configs.recommended,
},
];
Rule Name | Description | Recommended |
---|---|---|
no-deprecated-rules |
Ensure no deprecated rules are used | yes |
no-unknown-rules |
Ensure all rules are valid | yes |
no-unused-rules |
Ensure all non-deprecated rules are used | yes |
sort-rules |
Ensure eslint rules are sorted | yes |