jslint Import global variables from another file
Is there a way to use global variables declared in another js file when analyzing the file using jslint . Currently I have to declare all my global variables in the header, however that's really slow and not practical. /* global console, myglobalvar1, othervar... */ Is there a way to import the other script file like in Re-sharper? /// <reference path="my.js" /> JSLint is probably suggesting a useful code architecture improvement for you here, actually. Why not put all of those globals in the same namespace? Rather than... var Global1 = "spam", Global2 = 2; ... use... var MyStuff = MyStuff ||