Take the following minimal .eslintrc.yaml:
extends: eslint:recommended
When I run eslint-find-rules -c .eslintrc.yaml it dumps a list of every eslint rule, which is extremely unhelpful.
I think the problem here is that eslint:recommended is implemented by setting the value for non-recommended rules to off instead of leaving them out. The only workaround I can think of for this is to explicitly mask out eslint:recommended and then later fill them back in. However, this seems like a bit of a bodge; is there a better way to do this?
The alternative is to add a flag such as --off-is-unused to consider any rules which have been turned off to be unused. Of course, that would prevent rules from being removed from the list.
Take the following minimal
.eslintrc.yaml:When I run
eslint-find-rules -c .eslintrc.yamlit dumps a list of every eslint rule, which is extremely unhelpful.I think the problem here is that
eslint:recommendedis implemented by setting the value for non-recommended rules tooffinstead of leaving them out. The only workaround I can think of for this is to explicitly mask outeslint:recommendedand then later fill them back in. However, this seems like a bit of a bodge; is there a better way to do this?The alternative is to add a flag such as
--off-is-unusedto consider any rules which have been turned off to be unused. Of course, that would prevent rules from being removed from the list.