← Back to context

Comment by jryle70

2 years ago

It's not the same. You can try the very query above "how do you configure eslint errors to warnings".

Using Google with Bard, the regular results from Google search for me are:

1) Is it possible to show warnings instead of errors on ALL of eslint rules? 2) Configure Rules - ESLint - Pluggable JavaScript Linter 3) ESLint Warnings Are an Anti-Pattern

None of them answers the question directly. Bard on the other hand returns with:

To configure ESLint errors to warnings, you can either: - Set the severity of the rule to "warn" in your ESLint configuration file. - Use the eslint-disable-next-line comment to disable the rule for a single line of code. For example, to set the severity of the "no-unused-vars" rule to "warn", you...

I'm not familiar with eslint and have no idea if the answer is correct, but it's definitely a more concise and to the point, and an upgrade over the regular search.