I was wondering how I can set the scope of certain variables for JSHint for my entire project in WebStorm.
So, if I have several files and import, for example jquery or Backbone , I do not need to see the JSHint: 'Backbone' is not defined.(W117) error JSHint: 'Backbone' is not defined.(W117) . These are not only my imported libraries, but also my own external files.
Some suggestions are that I should disable undefined errors. But this is the functionality that I want to use.
those. In my main.js , I have this:
function Main(){
and in foo.js I have this:
function init(){ var main = new Main();
source share