-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
134 lines (134 loc) · 3.56 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
},
"globals": {
"logger": "readonly",
"describe": "readonly",
"it": "readonly",
"afterEach": "readonly",
"before": "readonly"
},
"rules": {
"arrow-body-style": "error",
"camelcase": "off",
"dot-notation": "error",
"no-plusplus":["error", { "allowForLoopAfterthoughts": true }],
"array-bracket-spacing": ["error", "always"],
"no-useless-concat": "off",
"no-param-reassign": "off",
"comma-dangle": "error",
"comma-spacing": "error",
"block-scoped-var": "error",
"complexity": "off",
"constructor-super": "error",
"default-case": "error",
"eol-last": "error",
"valid-jsdoc": "error",
"no-var": "error",
"no-duplicate-imports": "error",
"no-irregular-whitespace": "error",
"consistent-this": "error",
"func-name-matching": "error",
"no-trailing-spaces": "error",
"arrow-spacing": "error",
"arrow-parens": "off",
"prefer-const": "error",
"prefer-spread": "error",
"prefer-destructuring": "error",
"no-unused-vars": "off",
"semi": ["error", "always"],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}],
"max-len": ["error", { "code": 150, "tabWidth": 4 }],
"consistent-return": "off",
"import/prefer-default-export": "off",
"no-empty": [
"warn",
{
"allowEmptyCatch": true
}
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"no-multiple-empty-lines": "error",
"one-var": [
"error",
{
"uninitialized": "always",
"initialized": "never"
}
],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true
}
],
"space-unary-ops": [
"error",
{
"words": false,
"nonwords": false
}
],
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"no-spaced-func": "error",
"comma-style": ["error", "last"],
"curly": ["error", "all"],
"object-shorthand": "error",
"operator-linebreak": ["error", "after"],
"space-infix-ops": "error",
"keyword-spacing": [
"error",
{
"overrides": {
"else": {
"before": true
},
"while": {
"before": true
},
"catch": {
"before": true
}
}
}
],
"spaced-comment": ["error", "always"],
"space-before-blocks": ["error", "always"],
"indent": ["error", 2],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"func-names": ["error", "never"],
"no-console": "off",
"no-underscore-dangle": 0
}
}