{ "boss": true,//允许在if,for,while语句中使用赋值 "expr": true,//允许应该出现赋值或函数调用的地方使用表达式 "funcscope": true,//允许在控制体内定义变量而在外部使用 "laxbreak": true,//允许不安全的行中断(与laxcomma配合使用) "laxcomma": true,//允许逗号开头的编码样式 "loopfunc": true,//允许循环中定义函数 "multistr": true,//允许多行字符串 "scripturl": true, "smarttabs": true,//允许混合tab和space排版 "validthis": true,//允许严格模式下在非构造函数中使用this "curly": true,//if和while等语句中使用{}来明确代码块 "eqeqeq": true,//使用===和!==替代==和!= "immed": true,//匿名函数必须调用 "latedef": false,//变量定义前禁止使用 "quotmark": false, "unused": "strict",//禁止定义变量却不使用 "maxparams": false,//函数可以接受的最大参数数量 "maxdepth": false,//代码块中可以嵌入{}的最大深度 "indent": 2,//代码缩进宽度(空格数) "node" : true, "jquery": true, "es5" : false, "browser" : true, "devel": true // "debug": false,//允许debugger语句 // "devel": false,//定义用于调试的全局变量: console , alert // "evil": true,//允许使用eval // "forin": false,//在for in循环中使用Object.PRototype.hasOwnProperty()来过滤原型链中的属性 // "laxbreak": false,//允许不安全的行中断(与laxcomma配合使用) // "newcap": true,//构造函数名首字母必须大写 // "noarg": true,//禁止使用arguments.caller和arguments.callee // "noempty": false,//禁止出现空的代码块 // "nonew": false,//禁止使用构造器 // "nomen": false, // "onevar": true, // "plusplus": false,//禁止使用++和-- // "regexp": false, // "undef": true,//禁止使用不在全局变量列表中的未定义的变量 // "sub": true,//允许person['name'] // "strict": false,//强制使用ES5的严格模式 // "white": true//禁止"non-breaking whitespace" // "trailing": true//禁止行尾空格 // "esnext":true//允许ECMAScript 6规约 // "supernew":true//允许new function() {...}和new Object; }