Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ESlint throw errors instead of warnings

Is it possible to throw errors instead of warnings using Eslint? I am working with a create-react-app and want to have a really strict lint policy in my team, and thought that this might be a good start.

Is that possible?

like image 948
superuser123 Avatar asked Jul 15 '18 07:07

superuser123


1 Answers

--max-warnings can serve this purpose: --max-warnings=0 means that any warnings cause eslint to report an error.

https://github.com/eslint/eslint/issues/2309#issuecomment-219828044

like image 122
princekin Avatar answered Oct 07 '22 01:10

princekin