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

How do you set a global configuration? #229

Closed mercmobily closed 5 years ago

mercmobily commented 5 years ago

Hi,

Thanks for the fantastic work. I would like to set a bunch of default settings. For example, I am getting "js-standard: customElements is not defined". I would like to set customElements as a global variable for the WHOLE project. Or, I would like to set the project as a browser one so that these warnings go away.

Is it possible to do so? How?

Arcanemagus commented 5 years ago

This is answered in the standard FAQ:

I use a library that pollutes the global namespace. How do I prevent "variable is not defined" errors?

This package is simply a wrapper around standard, you should always look there first for how to change the output you are seeing.

mercmobily commented 5 years ago

Awesome, thank you so much for answering. I now have a much better understanding of what's happening under the hood.