é
ç½®package/grunt-contrib-jshintï¼ä¸éè¦çæ¹æfalse
options :{jshintrc:{ "curly" : true, // true: Require {} for every new block or scope "eqeqeq" : true, // true: Require triple equals (===) for comparison "immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` "latedef": true, // true: Require variables/functions to be defined before being used "newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()` "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` "sub" : true, // true: Prohibit use of empty blocks "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) "boss" : true, // true: Require all defined variables be used "eqnull" : true, // true: Requires all functions run in ES5 Strict Mode "globals": { "jQuery": true //å¯ä»¥ä½¿ç¨jqueryçå½æ°
}
}
}
温馨提示:答案为网友推荐,仅供参考