MiguelCastillo / Brackets-InteractiveLinter

Interactive linting for Brackets
Other
119 stars 26 forks source link

Skip errors #168

Closed laedri closed 8 years ago

laedri commented 8 years ago

I have Chrome extension, and I use it jQuery in that extension.

Linter gives me error about chrome.tabs.executeScript({ // foo }); (chrome not defined) and $('foo') ($ not defined). I don't want to see these errors. How can I skip them?

MiguelCastillo commented 8 years ago

Which linter are you using? It seems like you just need to specify an entry in your config file to tell whichever linter you are using that chrome and $ are known variables.

laedri commented 8 years ago

JSHint. I didn't know that I can define known variables. Thanks.

MiguelCastillo commented 8 years ago

Awesome. Glad it works.