-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
48 lines (48 loc) · 1.23 KB
/
.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
39
40
41
42
43
44
45
46
47
48
{
"env": {
"node": true,
"mocha": true
},
"plugins": [],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script",
"ecmaFeatures": {}
},
"rules": {
"no-var": ["error"],
"no-console": ["error"],
"comma-spacing": ["error"],
"camelcase": ["error"],
"no-unused-vars": ["error"],
"no-cond-assign": ["error"],
"no-return-assign": ["error"],
"no-param-reassign": ["error"],
"no-inline-comments": ["error"],
"no-trailing-spaces": ["error"],
"curly": ["error"],
"eqeqeq": ["error"],
"brace-style": ["error"],
"key-spacing": ["error"],
"semi-spacing": ["error"],
"semi": ["error", "always"],
"keyword-spacing": ["error"],
"space-infix-ops": ["error"],
"space-before-blocks": ["error"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"quotes": ["error", "single"],
"prefer-arrow-callback": ["error"],
"object-curly-spacing": ["error", "never"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["error", 180, 2, { "ignoreComments": true }],
"comma-dangle": ["error", "always-multiline"]
},
"globals": {}
}