-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
52 lines (52 loc) · 1.22 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
49
50
51
52
{
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": ["prettier"],
"extends": ["eslint:recommended", "prettier"],
"rules": {
"arrow-parens": ["warn", "always"],
"comma-spacing": ["warn"],
"eol-last": ["warn", "always"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
"key-spacing": [
"warn",
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": ["warn", { "after": true }],
"no-extra-boolean-cast": "off",
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-multi-spaces": "warn",
"no-spaced-func": "warn",
"no-unused-vars": "warn",
"object-curly-spacing": ["warn", "always"],
"prettier/prettier": "warn",
"semi": ["warn", "always"],
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": [
"warn",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"spaced-comment": ["warn", "always"],
"space-infix-ops": "warn",
"space-in-parens": ["warn", "never"],
"space-unary-ops": [
"warn",
{
"words": true,
"nonwords": false
}
]
},
"env": {
"es6": true,
"node": true
}
}