- Extending
prettier:
no-spaced-func deprecated in eslint since version 3.3.0
indent-legacy is deprecated in eslint since version 4.0.0
- Extending
prettier/react:
react/jsx-space-before-closing deprecated in eslint-plugin-react since version 7.0.0:
Not sure what's the policy here for deprecated rules.
My use case is to catch deprecated rules in an existing config using eslint-find-rules.
The issue is that projects have configurations with deprecated rules and ESLint does not warn about it.
So I'd like to catch such cases, possible with:
npx eslint-find-rules -d .eslintrc
Ideally this would exit with a 0 value and when I bump ESLint or related configs/plugins, it'll exit with non 0 and show me which rules are deprecated.
Right now it's not possible when extending eslint-config-prettier:
.eslintrc:
{
"extends": ["prettier"]
}
$ npx eslint-find-rules -d .eslintrc
deprecated rules
indent-legacy no-spaced-func
prettier:no-spaced-funcdeprecated ineslintsince version3.3.0indent-legacyis deprecated ineslintsince version4.0.0prettier/react:react/jsx-space-before-closingdeprecated ineslint-plugin-reactsince version7.0.0:Not sure what's the policy here for deprecated rules.
My use case is to catch deprecated rules in an existing config using eslint-find-rules.
The issue is that projects have configurations with deprecated rules and ESLint does not warn about it.
So I'd like to catch such cases, possible with:
Ideally this would exit with a
0value and when I bump ESLint or related configs/plugins, it'll exit with non0and show me which rules are deprecated.Right now it's not possible when extending
eslint-config-prettier:.eslintrc: