Disable JSHint for a file
I like JSHint, but sometimes you just want it to completely shut up. Add this to the top of your file:
// jshint ignore: start
And you’re done! JSHint won’t complain about your file any more. (Don’t take this as an excuse to write bad code!)
See also: how to disable ESLint for a file.