Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to show warnings instead of errors on ALL of eslint rules?

As the title says, would it be possible for eslint to show warnings instead of errors on ALL of the rules? I'm using Standard JS, if that information is relevant.

Thanks!

like image 773
nrion Avatar asked Jun 05 '18 17:06

nrion


People also ask

How do I ignore all ESLint errors?

You can also disable all ESLint rules by putting /* eslint-disable */ at the top of a file.

How many ESLint rules are there?

Keep in mind that we have over 200 rules, and that is daunting both for end users and the ESLint team (who has to maintain them).

How are ESLint rules set?

There are two primary ways to configure ESLint: Configuration Comments - use JavaScript comments to embed configuration information directly into a file. Configuration Files - use a JavaScript, JSON, or YAML file to specify configuration information for an entire directory and all of its subdirectories.


1 Answers

I think there's no out-of-the-box option right now, but maybe you could use a plugin to achieve that: Eslint plugin only warn

Or set all the rules as warning instead of errors.

like image 192
Wayrex Avatar answered Sep 20 '22 17:09

Wayrex