IanVS / eslint-nibble

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

Add --resolve-plugins-relative-to option #99

Closed ehoogeveen-medweb closed 2 years ago

ehoogeveen-medweb commented 2 years ago

Closes #98.

This seems to do the trick locally. Because the option is kind of long, I had to set maxPadFactor: 2.5 to keep the options aligned. I think it still looks okay, but it might limit the amount of descriptive text per line on a standard width terminal a bit too much.

I couldn't find any good alternatives in the optionator options, but of course we could rename the option to something shorter (at the cost of losing parity with the ESLint CLI).

ehoogeveen-medweb commented 2 years ago

For comparison, in VSCode on Windows:

With maxPadFactor: 2.5: image

With maxPadFactor: 1.5 (the default): image

Without the new option (because it takes the average length of the options): image