-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
36 lines (34 loc) · 964 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
26
27
28
29
30
31
32
33
34
{
"root": true,
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"quote-props": ["warn", "consistent-as-needed"],
"arrow-parens": 0,
"generator-star-spacing": 0,
"no-debugger": 0,
"array-element-newline": ["error", "consistent"],
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"no-console": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"space-infix-ops": ["warn"],
"eol-last":["warn"],
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"comma-dangle": ["warn", "never"],
"eqeqeq": ["warn"],
"semi": ["warn", "never"],
"keyword-spacing": ["warn"],
"space-before-blocks": ["warn"],
"comma-spacing": ["warn", { "before": false, "after": true }]
}
}