Additional ESLint rules for directive comments of ESLint.
MIT License
Bot releases are visible (Hide)
eslint-comments/no-unused-disable
rule because of some problems (https://github.com/mysticatea/eslint-plugin-eslint-comments/issues/21#issuecomment-465031007).Support ESLint 5.0.0 🎉
This version has no change from v3.0.0-beta.2.
Now support ESLint 5.0.0 α 🎉
This version is β.
Please use @next
tag to install.
npm install eslint-plugin-eslint-comments@next
>=4.0.0
to >=6.5.0
^4.7.0
to >=4.19.1
plugin:eslint-comments/recommended
preset doesn't include eslint-comments/no-unused-disable
rule. You have two options:
eslint-comments/no-unused-disable
rule.eslint-comments/no-unused-disable
rule explicitly continuously.eslint-comments/no-unused-disable
rule crashes on ESLint 5.0.0 α.eslint@<4.7.0
. ESLint changed the behavior about directive comments without backward compatibility in https://github.com/eslint/eslint/pull/9216. And the rules of plugins cannot know the version of ESLint which is running the rule. They are recommending plugin developers to drop support for old ESLint if you want to know the version of ESLint. Eslint-plugin-eslint-comments
v2.0.0 handles directive comments of eslint@>=4.7.0
.eslint@>=4.7.0
. This rule reports eslint-enable
directive comments if it affects multiple eslint-disable
directive comments. That is confusable behavior that does not exist before [email protected]
.