Update .eslintrc
To make it compatible with new versions of ESLint and specify other options.
This commit is contained in:
parent
a0d39e1b49
commit
3d2d50c308
38
.eslintrc
38
.eslintrc
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"env" : {
|
"env": {
|
||||||
"node": true,
|
"node": true,
|
||||||
"browser": true
|
"browser": true
|
||||||
},
|
},
|
||||||
@ -7,14 +7,34 @@
|
|||||||
"$": true,
|
"$": true,
|
||||||
"define": true
|
"define": true
|
||||||
},
|
},
|
||||||
"rules" : {
|
"extends": "eslint:recommended",
|
||||||
"quotes": false,
|
"rules": {
|
||||||
"space-after-keywords": [2, "always", {"checkFunctionKeyword": true}],
|
"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,
|
||||||
"space-before-blocks": [2, "always"],
|
"space-before-blocks": [2, "always"],
|
||||||
"brace-style": [2, "1tbs", { "allowSingleLine": false}],
|
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
|
||||||
"spaced-line-comment": [2, "always"],
|
"space-in-parens": 2,
|
||||||
"radix": [2, "always"],
|
"space-infix-ops": 2,
|
||||||
"key-spacing": [2, "always", {"beforeColon": false, "afterColon": true}],
|
"space-return-throw-case": 2,
|
||||||
"no-multiple-empty-lines": [2, {max: 1}],
|
"space-unary-ops": 2,
|
||||||
|
"spaced-comment": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user