2015-01-26 03:19:37 +08:00
|
|
|
{
|
2015-10-03 19:44:38 +08:00
|
|
|
"env": {
|
2015-01-26 03:19:37 +08:00
|
|
|
"node": true,
|
|
|
|
"browser": true
|
|
|
|
},
|
|
|
|
"globals": {
|
2015-02-13 02:45:04 +08:00
|
|
|
"$": true,
|
|
|
|
"define": true
|
2015-01-26 03:19:37 +08:00
|
|
|
},
|
2015-10-03 19:44:38 +08:00
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"rules": {
|
|
|
|
"eqeqeq": 2,
|
|
|
|
"no-multi-spaces": 2,
|
|
|
|
"curly": 2,
|
|
|
|
"semi": 2,
|
|
|
|
"no-with": 2,
|
|
|
|
"strict": [2, "global"],
|
|
|
|
"radix": 2,
|
|
|
|
"no-use-before-define": 2,
|
|
|
|
"block-spacing": 2,
|
|
|
|
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
|
|
|
"camelcase": 2,
|
|
|
|
"comma-spacing": [2, {"before": false, "after": true}],
|
|
|
|
"eol-last": 2,
|
|
|
|
"no-multiple-empty-lines": 2,
|
|
|
|
"indent": [2, 2],
|
|
|
|
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
|
|
|
|
"linebreak-style": [2, "unix"],
|
|
|
|
"new-parens": 2,
|
|
|
|
"no-trailing-spaces": 2,
|
|
|
|
"semi-spacing": 2,
|
2015-01-26 03:19:37 +08:00
|
|
|
"space-before-blocks": [2, "always"],
|
2015-10-03 19:44:38 +08:00
|
|
|
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
|
|
|
|
"space-in-parens": 2,
|
|
|
|
"space-infix-ops": 2,
|
|
|
|
"space-return-throw-case": 2,
|
|
|
|
"space-unary-ops": 2,
|
|
|
|
"spaced-comment": 2
|
2015-01-26 03:19:37 +08:00
|
|
|
}
|
|
|
|
}
|