2/3/2014 - 4:25 PM

#jquery #JSHint ignore

#jquery #JSHint ignore

A directive for telling JSHint to ignore a block of code.

/* jshint ignore:start */ // Code here will be linted with ignored by JSHint. /* jshint ignore:end */

All code in between ignore:start and ignore:end won't be passed to JSHint so you can use any language extension. Additionally, you can ignore a single line with a trailing comment:

ignoreThis(); // jshint ignore:line

Ignore globals

/*global $:false */ /*global Drupal:false */