码迷,mamicode.com
首页 > Web开发 > 详细

jshint配置.jshintrc

时间:2014-08-26 13:51:56      阅读:323      评论:0      收藏:0      [点我收藏+]

标签:os   io   for   ar   cti   sp   new   on   ef   

{

    "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

}


jshint配置.jshintrc

标签:os   io   for   ar   cti   sp   new   on   ef   

原文地址:http://my.oschina.net/u/923974/blog/306695

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!