"no-unused-expressions": 2, //禁止无用的表达式
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}], //不能有声明后未被使用的变量或参数
"no-use-before-define": 2, //未定义前不能使用
"no-useless-call": 2, //禁止不必要的call和apply
"no-void": 2, //禁用void操作符
"no-var": 0, //禁用var,用let和const代替
"no-warning-comments": [1, { "terms": ["todo", "fixme", "xxx"], "location": "start" }], //不能有警告备注
"no-with": 2, //禁用with
"array-bracket-spacing": [2, "never"], //是否允许非空数组里面有多余的空格
"arrow-parens": 0, //箭头函数用小括号括起来
"arrow-spacing": 0, //=>的前/后括号
"accessor-pairs": 0, //在对象中使用getter/setter
"block-scoped-var": 0, //块语句中使用var
"brace-style": [1, "1tbs"], //大括号风格
"callback-return": 1, //避免多次调用回调什么的
"camelcase": 2, //强制驼峰法命名
"comma-dangle": [2, "never"], //对象字面量项尾不能有逗号
"comma-spacing": 0, //逗号前后的空格
"comma-style": [2, "last"], //逗号风格,换行时在行首还是行尾
"complexity": [0, 11], //循环复杂度
"computed-property-spacing": [0, "never"], //是否允许计算后的键名什么的
"consistent-return": 0, //return 后面是否允许省略
"consistent-this": [2, "that"], //this别名
"constructor-super": 0, //非派生类不能调用super,派生类必须调用super
"curly": [2, "all"], //必须使用 if(){} 中的{}
"default-case": 2, //switch语句最后必须有default
"dot-location": 0, //对象访问符的位置,换行的时候在行首还是行尾
"dot-notation": [0, { "allowKeywords": true }], //避免不必要的方括号
"eol-last": 0, //文件以单一的换行符结束
"eqeqeq": 2, //必须使用全等
"func-names": 0, //函数表达式必须有名字
"func-style": [0, "declaration"], //函数风格,规定只能使用函数声明/函数表达式
"generator-star-spacing": 0, //生成器函数*的前后空格
"guard-for-in": 0, //for in循环要用if语句过滤
"handle-callback-err": 0, //nodejs 处理错误
"id-length": 0, //变量名长度
"indent": [2, 4], //缩进风格
"init-declarations": 0, //声明时必须赋初值
"key-spacing": [0, { "beforeColon": false, "afterColon": true }], //对象字面量中冒号的前后空格
"lines-around-comment": 0, //行前/行后备注
"max-depth": [0, 4], //嵌套块深度
"max-len": [0, 80, 4], //字符串最大长度
"max-nested-callbacks": [0, 2], //回调嵌套深度
"max-params": [0, 3], //函数最多只能有3个参数
"max-statements": [0, 10], //函数内最多有几个声明










