I'm trying to be good and lint my scripts, but I can't get jshint to ignore preprocessor directives, eg
After a bit of digging I found that you can tell jshint to ignore warnings by placing your code between:
/* jshint ignore:start */
code goes here
/* jshint ignore:end */
Unfortunately, this only works for warnings (W### warning code) but not for errors (E### error code), which preprocessor directives fall under.
So if you're using jshint, are you able to get it to ignore error codes?
Any advice greatly appreciated.
Huh, this is quite old question.
If you want to ignore those Adobe specific globals, you must add them to globals list like this:
More info on jshint docs page.
If you find this answer helpful, please mark it as proper answer. Thanks jonht