ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

Added option to display just fatal errors by ignoring warnings #195

Closed ToddHedrick closed 7 years ago

ToddHedrick commented 7 years ago

I added in a new option so that JS warnings (like formatting warnings) can be turned off and just fatal warnings are displayed

Let me know if you have any questions Thanks! Todd

sonicdoe commented 7 years ago

Can you share a use case for this?

Currently, all standard errors are displayed as warnings and only parsing errors are displayed as errors. Deactivating this option would therefore completely disable standard and only show an error if your JavaScript is unparsable.

ToddHedrick commented 7 years ago

It is exactly as you say, it will only display parsing errors as oppose to formatting errors.

This is for when you are working with other peoples code or with minimized code to determine fatal errors instead of being overwhelmed with warnings about tab expectations, spacing, etc

Thanks! Todd

sonicdoe commented 7 years ago

Sorry, I don’t think this should be part of linter-js-standard as it completely disables standard and basically turns the linter into a simple syntax validator.

There may be value in an Atom linter which only looks for syntax errors, though.