-
Notifications
You must be signed in to change notification settings - Fork 47
/
.eslintrc.json
25 lines (25 loc) · 972 Bytes
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"parserOptions": {
"ecmaVersion": 6
},
"extends": "eslint:recommended",
"rules": {
"brace-style": ["error", "allman", {"allowSingleLine": true}],
"camelcase": ["error"],
"comma-spacing": ["error", {"before": false, "after": true}],
"indent": ["error", 4, {"SwitchCase": 1}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"max-len": ["error", {"code": 116}],
"object-curly-spacing": ["error", "never"],
"no-case-declarations": ["off"],
"no-console": ["error", {"allow": ["warn", "error"]}],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-var": ["error"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"]
}
}