Closed brettz9 closed 4 years ago
First time I've seen that eslint CLI flag. It's like meta eslinting.
FWIW, If you use https://github.com/mysticatea/eslint-plugin-eslint-comments , there is a rule one can use instead: https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html (it mentions being hacky, but it has worked for me).
Builds on #23.
Also adds
--report-unused-disable-directives
(see https://eslint.org/docs/user-guide/command-line-interface )(I added the latter flag as I don't see good reasons for keeping disable directives that don't apply to one's current eslint config.)