Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have eslint only show fatal errors?

I would like to silence all style warnings and only be alerted when there is a major leak in my code, like a missing bracket, or a referenced var that doesn't exist. Is there a rule that can be inserted into eslint.json to quiet everything except fatal errors?

like image 821
Phil Andrews Avatar asked May 29 '17 19:05

Phil Andrews


1 Answers

You can use --quiet option to show error-level only, like eslint --quiet "*.js"

https://eslint.org/docs/user-guide/command-line-interface

Handling warnings:  --quiet                        Report errors only - default: false 
like image 84
Yasuhiro TATSUNO Avatar answered Sep 18 '22 14:09

Yasuhiro TATSUNO