10up-toolkit icon indicating copy to clipboard operation
10up-toolkit copied to clipboard

Eslint only warnings

Open tobeycodes opened this issue 1 year ago • 0 comments

This is quite an opinionated suggestion so feel free to close.

I believe that linting should only report things that need to be fixed. I find myself working on projects that have hundreds or thousands of eslint warnings.

I think that we either need to enable rules or disable rules. Warnings get ignored, and clog the terminal.

There is a good plugin that will convert everything to warnings and --max-warnings=0 can be used to block builds if preferred. https://www.npmjs.com/package/eslint-plugin-only-warn

tobeycodes avatar Feb 27 '24 18:02 tobeycodes