-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
61 lines (61 loc) · 1.6 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 14
},
"rules": {
"array-bracket-newline": ["error", { "multiline": true }],
"array-bracket-spacing": ["error", "never"],
"array-element-newline": ["error", "consistent", { "multiline": true }],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["error", "never"],
"comma-spacing": "error",
"dot-location": ["error", "property"],
"eol-last": ["error", "always"],
"eqeqeq": "error",
"func-call-spacing": "error",
"indent": ["error", "tab", {
"SwitchCase": 1
}],
"key-spacing": "error",
"keyword-spacing": "error",
"max-len": ["error", 135],
"no-extra-semi": "error",
"no-extra-parens": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-tabs": 0,
"no-trailing-spaces": "error",
"no-unreachable": 2,
"no-unused-expressions": "error",
"no-var": "error",
"object-curly-newline": ["error", { "consistent": true, "multiline": true }],
"object-curly-spacing": ["error", "always"],
"prefer-const": ["error", {
"ignoreReadBeforeAssign": true
}],
"quotes": ["error", "single", {
"allowTemplateLiterals": true,
"avoidEscape": true
}],
"semi": ["error", "always"],
"semi-spacing": ["error", {
"before": false,
"after": true
}],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", "always"],
"space-in-parens": "error",
"space-infix-ops": "error",
"spaced-comment": ["error", "always", {
"exceptions": ["*"]
}],
"yoda": ["error", "never"]
}
}