-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·239 lines (233 loc) · 7.06 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/ignore": ["node_modules"],
"import/resolver": {
"typescript": true,
"node": {
"extensions": [".ts", ".tsx"]
}
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"project": ["./tsconfig.json"]
},
"overrides": [
{
"files": ["./src/*.js", "./*.js"],
"parser": "esprima",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"project": []
}
},
{
"files": ["./src/*.ts", "./src/**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"project": ["./tsconfig.json"]
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"argsIgnorePattern": "(_+)|(action)",
"args": "after-used",
"ignoreRestSiblings": false
}
]
}
},
{
"files": ["./src/orval/**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"project": ["./tsconfig.json"]
},
"rules": { "import/max-dependencies": 0, "import/order": 0 }
}
],
"extends": [
"eslint:recommended",
"prettier",
"plugin:import/typescript",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["import", "functional", "@typescript-eslint"],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-comment": 0,
"no-await-in-loop": ["error"],
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"no-constant-condition": ["error"],
"no-extra-parens": 0,
"no-extra-semi": ["error"],
"no-loss-of-precision": ["error"],
"no-promise-executor-return": ["error"],
"no-template-curly-in-string": ["error"],
"no-useless-backreference": ["error"],
"no-unused-vars": 0,
"require-atomic-updates": ["error"],
"accessor-pairs": ["error"],
"array-callback-return": ["error"],
"block-scoped-var": ["error"],
"class-methods-use-this": ["error"],
"complexity": ["error"],
"consistent-return": ["error"],
"curly": ["error"],
"default-case": ["error"],
"default-case-last": ["error"],
"default-param-last": 0,
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"grouped-accessor-pairs": ["error"],
"guard-for-in": ["error"],
"max-classes-per-file": ["error"],
"no-alert": ["error"],
"no-caller": ["error"],
"no-constructor-return": ["error"],
"no-div-regex": ["error"],
"no-else-return": ["error"],
"no-empty-function": ["error"],
"no-eq-null": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-label": ["error"],
"no-floating-decimal": ["error"],
"no-implicit-coercion": ["error"],
"no-implicit-globals": ["error"],
"no-implied-eval": ["error"],
"no-invalid-this": ["error"],
"no-iterator": ["error"],
"no-labels": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-magic-numbers": ["error", { "ignore": [1, -1, 0, 2] }],
"no-multi-spaces": ["error"],
"no-multi-str": ["error"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-octal-escape": ["error"],
"no-proto": ["error"],
"no-restricted-properties": ["error"],
"no-return-assign": ["error"],
"no-return-await": ["error"],
"no-script-url": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-throw-literal": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-unused-expressions": ["error"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-void": ["error"],
"no-warning-comments": ["warn"],
"prefer-named-capture-group": ["error"],
"prefer-promise-reject-errors": 0,
"prefer-regex-literals": ["error"],
"radix": ["error"],
"require-unicode-regexp": ["error"],
"vars-on-top": ["error"],
"wrap-iife": ["error"],
"yoda": ["error"],
"arrow-body-style": 0,
"eol-last": ["error", "always"],
"comma-dangle": 0,
"linebreak-style": 0,
"no-underscore-dangle": 0,
"no-unused-labels": 0,
"object-shorthand": 0,
"prefer-rest-params": 0,
"semi": ["error", "never"],
"functional/immutable-data": [
"error",
{
"ignoreAccessorPattern": "module.exports*"
}
],
"functional/no-let": ["error"],
"functional/prefer-property-signatures": ["error"],
"functional/prefer-readonly-type": 0,
"functional/prefer-immutable-types": 0,
"functional/prefer-tacit": ["error"],
"functional/no-classes": ["error"],
"functional/no-mixed-type": 0,
"functional/no-this-expressions": ["error"],
"functional/no-conditional-statements": 0,
"functional/no-expression-statement": 0,
"functional/no-loop-statements": ["error"],
"functional/no-return-void": 0,
"functional/no-promise-reject": 0,
"functional/no-throw-statement": 0,
"functional/no-try-statements": ["error"],
"functional/readonly-type": ["error"],
"functional/functional-parameters": 0,
"import/no-unresolved": ["error"],
"import/named": ["error"],
"import/default": ["error"],
"import/namespace": ["error"],
"import/no-restricted-paths": ["error"],
"import/no-absolute-path": ["error"],
"import/no-dynamic-require": ["error"],
"import/no-internal-modules": 0,
"import/no-webpack-loader-syntax": ["error"],
"import/no-self-import": ["error"],
"import/no-cycle": ["error"],
"import/no-useless-path-segments": ["error"],
"import/no-relative-parent-imports": 0,
"import/export": ["error"],
"import/no-named-as-default": ["error"],
"import/no-named-as-default-member": ["error"],
"import/no-deprecated": ["error"],
"import/no-extraneous-dependencies": ["error"],
"import/no-mutable-exports": ["error"],
"import/no-unused-modules": ["error"],
"import/unambiguous": ["error"],
"import/no-commonjs": 0,
"import/no-amd": ["error"],
"import/no-nodejs-modules": 0,
"import/first": ["error"],
"import/exports-last": 0,
"import/no-duplicates": ["error"],
"import/no-namespace": 0,
"import/extensions": ["error"],
"import/order": ["error"],
"import/newline-after-import": ["error"],
"import/prefer-default-export": 0,
"import/max-dependencies": ["error"],
"import/no-unassigned-import": ["error"],
"import/no-named-default": 0,
"import/no-named-export": 0,
"import/no-anonymous-default-export": 0,
"import/group-exports": 0,
"import/dynamic-import-chuckname": 0
}
}