-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
103 lines (103 loc) · 2.45 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "double" ],
"semi": [ "error", "always" ],
"eqeqeq": [
"error", "always"
],
"key-spacing": [
"error",
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": false,
"afterColon": true,
"align": "colon"
}
}
],
"array-bracket-spacing": [
"error",
"always",
{
"singleValue": true,
"arraysInArrays": true,
"objectsInArrays": false
}
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"object-curly-spacing": [
"error",
"always",
{
"objectsInObjects": true,
"arraysInObjects": true
}
],
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"space-before-blocks": [
"error",
"always"
],
"space-in-parens": [
"error",
"never"
],
"no-console": "error",
"arrow-parens": [
"error",
"as-needed"
],
"block-scoped-var": "error",
"curly": "error",
"dot-location": ["error", "property"],
"no-empty-function": "error",
"no-magic-numbers": [ "error", { "ignore": [-1, 0,1, 2, 3, 20, 100, 200, 400, 401, 404, 1000, 1500, 5000, 8080], "enforceConst": true }],
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-unmodified-loop-condition": "error",
"no-trailing-spaces": "error",
"require-await": "error",
"wrap-iife": [
"error",
"inside"
]
},
"extends": "eslint:recommended"
}