IanVS / eslint-nibble

Ease into ESLint, by fixing one rule at a time
MIT License
787 stars 29 forks source link

support sort rules by error count #111

Open tjx666 opened 1 year ago

tjx666 commented 1 year ago

Expect

I want the rule with max error count at the top.

Why

  1. I want to fix the rule with many errors one by one. And then fix the all rule with few errors one time.
  2. By sort the rules with error count, I can see which rule annoy user most
IanVS commented 1 year ago

That's not a bad idea. Right now they are sorted by rule name, but maybe it makes more sense to sort by errors. Though, would you want the most errors or the least at the top? I could see reasons to want either one (knock out the easy ones first, or dig into the biggest problems first).