-
Notifications
You must be signed in to change notification settings - Fork 0
/
oxlintrc.json
344 lines (344 loc) · 11.4 KB
/
oxlintrc.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
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
{
"env": {
"browser": true
},
"settings": {},
"rules": {
"default": "warn",
"named": "warn",
"namespace": "warn",
"expect-expect": "warn",
"no-conditional-expect": "warn",
"no-disabled-tests": "warn",
"no-export": "warn",
"no-focused-tests": "warn",
"no-standalone-expect": "warn",
"require-to-throw-message": "warn",
"valid-describe-callback": "warn",
"valid-expect": "warn",
"valid-title": "warn",
"check-property-names": "warn",
"check-tag-names": "warn",
"implements-on-classes": "warn",
"no-defaults": "warn",
"require-property": "warn",
"require-property-description": "warn",
"require-property-name": "warn",
"require-property-type": "warn",
"require-yields": "warn",
"alt-text": "warn",
"anchor-has-content": "warn",
"anchor-is-valid": "warn",
"aria-activedescendant-has-tabindex": "warn",
"aria-props": "warn",
"aria-role": "warn",
"aria-unsupported-elements": "warn",
"autocomplete-valid": "warn",
"click-events-have-key-events": "warn",
"heading-has-content": "warn",
"html-has-lang": "warn",
"iframe-has-title": "warn",
"img-redundant-alt": "warn",
"label-has-associated-control": "warn",
"lang": "warn",
"media-has-caption": "warn",
"mouse-events-have-key-events": "warn",
"no-access-key": "warn",
"no-aria-hidden-on-focusable": "warn",
"no-autofocus": "warn",
"no-distracting-elements": "warn",
"no-redundant-roles": "warn",
"prefer-tag-over-role": "warn",
"role-has-required-aria-props": "warn",
"role-supports-aria-props": "warn",
"scope": "warn",
"tabindex-no-positive": "warn",
"google-font-display": "warn",
"google-font-preconnect": "warn",
"inline-script-id": "warn",
"next-script-for-ga": "warn",
"no-assign-module-variable": "warn",
"no-async-client-component": "warn",
"no-before-interactive-script-outside-document": "warn",
"no-css-tags": "warn",
"no-document-import-in-page": "warn",
"no-duplicate-head": "warn",
"no-head-element": "warn",
"no-head-import-in-document": "warn",
"no-img-element": "warn",
"no-page-custom-font": "warn",
"no-script-component-in-head": "warn",
"no-styled-jsx-in-document": "warn",
"no-sync-scripts": "warn",
"no-title-in-document-head": "warn",
"no-typos": "warn",
"no-unwanted-polyfillio": "warn",
"no-new-statics": "warn",
"valid-params": "warn",
"api-keys": "warn",
"no-conditional-tests": "warn",
"require-local-test-context-for-concurrent-snapshots": "warn",
"no-await-in-loop": "warn",
"no-accumulating-spread": "warn",
"jsx-no-jsx-as-prop": "warn",
"jsx-no-new-array-as-prop": "warn",
"jsx-no-new-function-as-prop": "warn",
"jsx-no-new-object-as-prop": "warn",
"default-case": "warn",
"no-alert": "warn",
"no-bitwise": "warn",
"no-console": "warn",
"no-div-regex": "warn",
"no-empty": "warn",
"no-empty-function": "warn",
"no-eq-null": "warn",
"no-eval": "warn",
"no-iterator": "warn",
"no-plusplus": "warn",
"no-proto": "warn",
"no-regex-spaces": "warn",
"no-restricted-globals": "warn",
"no-undefined": "off",
"no-unsafe-optional-chaining": "warn",
"no-var": "warn",
"no-void": "warn",
"unicode-bom": "warn",
"no-amd": "warn",
"no-cycle": "warn",
"no-default-export": "off",
"no-dynamic-require": "warn",
"no-webpack-loader-syntax": "warn",
"check-access": "warn",
"empty-tags": "warn",
"bad-bitwise-operator": "warn",
"no-async-await": "off",
"no-barrel-file": "warn",
"no-const-enum": "warn",
"no-optional-chaining": "off",
"no-rest-spread-properties": "off",
"catch-or-return": "warn",
"spec-only": "warn",
"button-has-type": "warn",
"no-danger": "warn",
"no-unknown-property": "warn",
"explicit-function-return-type": "off",
"no-dynamic-delete": "warn",
"no-explicit-any": "warn",
"no-import-type-side-effects": "off",
"no-namespace": "warn",
"no-non-null-asserted-nullish-coalescing": "warn",
"no-non-null-assertion": "warn",
"no-var-requires": "warn",
"prefer-literal-enum-member": "warn",
"no-abusive-eslint-disable": "warn",
"no-anonymous-default-export": "warn",
"no-array-for-each": "warn",
"no-array-reduce": "warn",
"no-length-as-slice-end": "warn",
"no-magic-array-flat-depth": "warn",
"no-nested-ternary": "warn",
"no-process-exit": "warn",
"prefer-modern-math-apis": "warn",
"prefer-node-protocol": "warn",
"prefer-number-properties": "warn",
"no-extend-native": "warn",
"no-new": "warn",
"no-unexpected-multiline": "warn",
"no-useless-concat": "warn",
"no-useless-constructor": "warn",
"no-duplicates": "warn",
"no-named-as-default": "warn",
"no-named-as-default-member": "warn",
"no-self-import": "warn",
"no-commented-out-tests": "warn",
"approx-constant": "warn",
"misrefactored-assign-op": "warn",
"no-async-endpoint-handlers": "warn",
"jsx-no-comment-textnodes": "warn",
"react-in-jsx-scope": "off",
"no-confusing-non-null-assertion": "warn",
"no-extraneous-class": "warn",
"no-unnecessary-type-constraint": "warn",
"consistent-function-scoping": "warn",
"prefer-add-event-listener": "warn",
"array-callback-return": "warn",
"eqeqeq": "warn",
"max-classes-per-file": "warn",
"max-lines": "warn",
"no-array-constructor": "warn",
"no-case-declarations": "warn",
"no-constructor-return": "warn",
"no-fallthrough": "warn",
"no-inner-declarations": "warn",
"no-new-wrappers": "warn",
"no-prototype-builtins": "warn",
"no-redeclare": "warn",
"no-self-compare": "warn",
"radix": "warn",
"require-await": "warn",
"sort-keys": "off",
"sort-vars": "warn",
"symbol-description": "warn",
"max-dependencies": "off",
"no-conditional-in-test": "warn",
"require-param": "off",
"require-param-description": "warn",
"require-param-name": "warn",
"require-param-type": "warn",
"require-returns": "off",
"require-returns-description": "warn",
"require-returns-type": "warn",
"checked-requires-onchange-or-readonly": "warn",
"jsx-no-useless-fragment": "warn",
"no-unescaped-entities": "warn",
"ban-ts-comment": "warn",
"ban-types": "warn",
"prefer-enum-initializers": "off",
"prefer-ts-expect-error": "warn",
"escape-case": "warn",
"explicit-length-check": "warn",
"new-for-builtins": "warn",
"no-hex-escape": "warn",
"no-instanceof-array": "warn",
"no-lonely-if": "warn",
"no-negated-condition": "warn",
"no-negation-in-equality-check": "warn",
"no-new-buffer": "warn",
"no-object-as-default-parameter": "warn",
"no-static-only-class": "warn",
"no-this-assignment": "warn",
"no-typeof-undefined": "warn",
"no-unreadable-iife": "warn",
"no-useless-promise-resolve-reject": "warn",
"no-useless-switch-case": "warn",
"no-useless-undefined": "warn",
"prefer-array-flat": "warn",
"prefer-array-some": "warn",
"prefer-blob-reading-methods": "warn",
"prefer-code-point": "warn",
"prefer-date-now": "warn",
"prefer-dom-node-append": "warn",
"prefer-dom-node-dataset": "warn",
"prefer-dom-node-remove": "warn",
"prefer-event-target": "warn",
"prefer-math-trunc": "warn",
"prefer-native-coercion-functions": "warn",
"prefer-prototype-methods": "warn",
"prefer-query-selector": "warn",
"prefer-regexp-test": "warn",
"prefer-string-replace-all": "warn",
"prefer-string-slice": "warn",
"prefer-type-error": "warn",
"require-number-to-fixed-digits-argument": "warn",
"default-case-last": "warn",
"default-param-last": "warn",
"func-names": "warn",
"guard-for-in": "warn",
"max-params": "warn",
"no-continue": "warn",
"no-label-var": "warn",
"no-magic-numbers": "off",
"no-multi-str": "warn",
"no-new-func": "warn",
"no-script-url": "warn",
"no-template-curly-in-string": "warn",
"no-ternary": "warn",
"prefer-exponentiation-operator": "warn",
"prefer-numeric-literals": "warn",
"sort-imports": "off",
"consistent-test-it": "warn",
"max-expects": "warn",
"max-nested-describe": "warn",
"no-alias-methods": "warn",
"no-confusing-set-timeout": "warn",
"no-deprecated-functions": "warn",
"no-done-callback": "warn",
"no-duplicate-hooks": "warn",
"no-hooks": "off",
"no-identical-title": "warn",
"no-interpolation-in-snapshots": "warn",
"no-jasmine-globals": "warn",
"no-large-snapshots": "warn",
"no-mocks-import": "warn",
"no-restricted-jest-methods": "warn",
"no-restricted-matchers": "warn",
"no-test-prefixes": "warn",
"no-test-return-statement": "warn",
"no-untyped-mock-factory": "warn",
"prefer-called-with": "warn",
"prefer-comparison-matcher": "warn",
"prefer-equality-matcher": "warn",
"prefer-expect-resolves": "warn",
"prefer-hooks-in-order": "warn",
"prefer-hooks-on-top": "warn",
"prefer-jest-mocked": "warn",
"prefer-lowercase-title": "warn",
"prefer-mock-promise-shorthand": "warn",
"prefer-spy-on": "warn",
"prefer-strict-equal": "warn",
"prefer-to-be": "warn",
"prefer-to-contain": "warn",
"prefer-to-have-length": "warn",
"prefer-todo": "warn",
"require-hook": "warn",
"require-top-level-describe": "warn",
"no-exports-assign": "warn",
"avoid-new": "warn",
"param-names": "warn",
"prefer-await-to-then": "warn",
"jsx-boolean-value": "warn",
"jsx-curly-brace-presence": "warn",
"no-set-state": "warn",
"prefer-es6-class": "warn",
"self-closing-comp": "warn",
"adjacent-overload-signatures": "warn",
"array-type": "warn",
"ban-tslint-comment": "warn",
"consistent-indexed-object-style": "warn",
"consistent-type-definitions": "warn",
"no-empty-interface": "warn",
"prefer-for-of": "warn",
"prefer-function-type": "warn",
"prefer-namespace-keyword": "warn",
"catch-error-name": "warn",
"empty-brace-spaces": "warn",
"error-message": "warn",
"filename-case": "warn",
"no-await-expression-member": "warn",
"no-console-spaces": "warn",
"no-null": "off",
"no-unreadable-array-destructuring": "warn",
"no-zero-fractions": "warn",
"number-literal-case": "warn",
"numeric-separators-style": "warn",
"prefer-array-flat-map": "warn",
"prefer-dom-node-text-content": "warn",
"prefer-includes": "warn",
"prefer-logical-operator-over-ternary": "warn",
"prefer-modern-dom-apis": "warn",
"prefer-optional-catch-binding": "warn",
"prefer-reflect-apply": "warn",
"prefer-spread": "warn",
"prefer-string-trim-start-end": "warn",
"prefer-structured-clone": "warn",
"require-array-join-separator": "warn",
"switch-case-braces": "warn",
"text-encoding-identifier-case": "warn",
"throw-new-error": "warn",
"no-import-node-test": "warn",
"prefer-each": "warn",
"prefer-to-be-falsy": "warn",
"prefer-to-be-object": "warn",
"prefer-to-be-truthy": "warn",
"constructor-super": "warn",
"getter-return": "warn",
"no-undef": "off",
"no-unreachable": "warn",
"export": "warn",
"no-return-in-finally": "warn",
"require-render-return": "warn",
"rules-of-hooks": "warn",
"no-side-effects-in-initialization": "off",
"consistent-type-imports": "warn"
}
}