-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
55 lines (55 loc) · 1.28 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
53
54
55
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-mixed-spaces-and-tabs": "error",
"no-extra-parens": "error",
"no-unreachable": "error",
"no-lonely-if": "error",
"no-unneeded-ternary": "error",
"no-empty": "error",
"no-with": "error",
"no-unused-vars": "error",
"no-negated-condition": "error",
"curly": ["error", "all"],
"key-spacing": [
"error",
{
"beforeColon": true,
"afterColon": true
}
],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"operator-linebreak": ["error", "after"],
"block-spacing": "error",
"space-before-function-paren": ["error", "never"],
"space-before-blocks": "error",
"space-in-parens": "error",
"padded-blocks": ["error", "never"],
"camelcase": "error",
"comma-dangle": ["error", "never"],
"comma-style": ["error", "last"],
"yoda": "error"
}
}