Tuesday, June 3, 2014

Suppress JSHint for Entire File

There a a few ways to suppress jshint warnings for entire files.

File By File

Prepend a file with the following line:

// jshint ignore: start



All At Once

My preferred day is to list all files individually in a jshint config file.

Example contents of .jshintignore file:

app/scripts/init.js
app/scripts/main.js
app/scripts/util/util.js



References

http://lexsheehan.blogspot.com/2014/05/suppress-jshint-warnings.html

No comments:

Post a Comment