-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
executable file
·54 lines (54 loc) · 1.28 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
{
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 14
},
"plugins": [],
"rules": {
"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-tabs": 0,
"no-trailing-spaces": "error",
"no-unreachable": 2,
"no-unused-expressions": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": 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": ["*", "open", "close"]
}],
"yoda": ["error", "never"]
}
}