javascript - How can I tell JSHint to include globals defined in another file? -
i have large javascript file appears on every page of site , defines number of objects in global scope. on few pages have additional scripts use , extend these objects. don't want concatenate them single large scripts, , don't want manually declare globals available.
is there way tell jshint script x depends on script y, there first global variables?
note: i'm aware can manually inform jshint of globals in comments in each file or throughout project .jshintrc
file. asking way tell jshint figure out automatically, way if script y prepended script x before running jshint.
Comments
Post a Comment