jshint配置.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
"es3" : true, // {int} Max number of formal params allowed per function
"node" : true, // {int} Max depth of nested blocks (within functions)
"-W117" : true // {int} Max number statements per function
}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。