饭叔的知识整理

jslint ignore

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

You can also ignore a single line with a trailing comment like this:

ignoreThis(); // jshint ignore:line

http://stackoverflow.com/questions/599859/jslint-control-comments-selective-ignore http://stackoverflow.com/questions/12977661/is-there-a-way-to-suppress-jshint-warning-for-one-given-line