Closed alexilyaev closed 6 years ago
Thanks for bringing this to our attention!
As for the duplicated output regarding the plugin rules
, this is an issue pretty easy to fix. I'll see if I can get a bugfix PR up tomorrow.
(The statement to actually print out the collected output should move out of its current location, because it gets invoked multiple times in the loop.)
When you only want to print out rules that are "unused" and "plugin rules", shifting the query a little bit, to only show "unused" and "not core rules" should suffice:
e.g. eslint-find-rules --unused --no-core .eslintrc
Oh, I see, it works, though it wasn't clear from the README.
At first I thought -u
would only show the unused rules, but it makes sense to separate each flag to it's own output, gives more flexibility.
Yes, there's definitely room for improvement regarding the README's description.
I also hope to get the rework for the parameter parsing with yargs done soon, that should help with ambiguous sounding flags.
Using this:
Results in this:
Reproduce
npm run eslint-find-rules