-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
38 lines (38 loc) · 983 Bytes
/
.eslintrc
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
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": ["block-like", "return"] }
],
"operator-linebreak": ["error", "after"],
"space-before-function-paren": ["error", "never"],
"space-infix-ops": "error",
"object-curly-spacing": ["error", "always"],
"no-implicit-coercion": "error",
"no-nested-ternary": "warn",
"no-unneeded-ternary": "error",
"brace-style": "error",
"arrow-parens": ["error", "as-needed"],
"quotes": [
"error",
"single"
],
"semi": "error",
"comma-dangle": ["error", "never"],
"eol-last": "error"
}
}