Repository navigation
Expand file tree
/
Copy path.oxlintrc.json
More file actions
297 lines (297 loc) · 10.2 KB
/
Copy path.oxlintrc.json
File metadata and controls
297 lines (297 loc) · 10.2 KB
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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"import",
"jest",
"typescript",
"unicorn"
],
"jsPlugins": [
"./script/oxlint/biome-ports.ts"
],
"categories": {},
"rules": {
"eslint/array-callback-return": [
"error",
{
"checkForEach": true,
"allowVoid": true
}
],
"eslint/constructor-super": "error",
"eslint/default-case-last": "error",
"eslint/eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"eslint/for-direction": "error",
"eslint/getter-return": "error",
"eslint/no-array-constructor": "error",
"eslint/no-async-promise-executor": "error",
"eslint/no-case-declarations": "error",
"eslint/no-class-assign": "error",
"eslint/no-compare-neg-zero": "error",
"eslint/no-cond-assign": "error",
"eslint/no-const-assign": "error",
"eslint/no-constant-condition": "error",
"eslint/no-constructor-return": "error",
"eslint/no-control-regex": "off",
"eslint/no-debugger": "error",
"eslint/no-dupe-class-members": "error",
"eslint/no-dupe-else-if": "error",
"eslint/no-dupe-keys": "error",
"eslint/no-duplicate-case": "error",
"eslint/no-empty-character-class": "error",
"eslint/no-empty-pattern": "error",
"eslint/no-eval": "error",
"eslint/no-ex-assign": "error",
"eslint/no-extra-boolean-cast": "error",
"eslint/no-extra-label": "error",
"eslint/no-fallthrough": "error",
"eslint/no-func-assign": "error",
"eslint/no-global-assign": "error",
"eslint/no-import-assign": "error",
"eslint/no-inner-declarations": "error",
"eslint/no-irregular-whitespace": "error",
"eslint/no-label-var": "error",
"eslint/no-labels": [
"error",
{
"allowLoop": true,
"allowSwitch": false
}
],
"eslint/no-lone-blocks": "error",
"eslint/no-loss-of-precision": "error",
"eslint/no-misleading-character-class": "error",
"eslint/no-nonoctal-decimal-escape": "error",
"eslint/no-obj-calls": "error",
"eslint/no-proto": "error",
"eslint/no-prototype-builtins": "error",
"eslint/no-redeclare": "error",
"eslint/no-regex-spaces": "error",
"eslint/no-script-url": "error",
"eslint/no-self-assign": "error",
"eslint/no-self-compare": "error",
"eslint/no-sequences": "error",
"eslint/no-setter-return": "error",
"eslint/no-shadow-restricted-names": "error",
"eslint/no-sparse-arrays": "error",
"eslint/no-template-curly-in-string": "error",
"eslint/no-this-before-super": "error",
"eslint/no-unneeded-ternary": "error",
"eslint/no-unreachable": "error",
"eslint/no-unsafe-finally": "error",
"eslint/no-unsafe-negation": "error",
"eslint/no-unsafe-optional-chaining": "error",
"eslint/no-unused-labels": "error",
"eslint/no-unused-private-class-members": "error",
"eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"variables": false,
"allowNamedExports": true
}
],
"eslint/no-useless-backreference": "error",
"eslint/no-useless-catch": "error",
"eslint/no-useless-constructor": "error",
"eslint/no-useless-escape": "error",
"eslint/no-useless-rename": "error",
"eslint/no-with": "error",
"eslint/prefer-arrow-callback": "error",
"eslint/prefer-const": [
"error",
{
"ignoreReadBeforeAssign": true
}
],
"eslint/prefer-exponentiation-operator": "error",
"eslint/prefer-numeric-literals": "error",
"eslint/prefer-regex-literals": "error",
"eslint/prefer-rest-params": "error",
"eslint/prefer-template": "off",
"eslint/radix": "error",
"eslint/require-yield": "error",
"eslint/use-isnan": "error",
"eslint/valid-typeof": "error",
"jest/no-duplicate-hooks": "error",
"jest/no-export": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "off",
"oxc/bad-min-max-func": "error",
"oxc/no-accumulating-spread": "error",
"oxc/no-const-enum": "error",
"typescript/adjacent-overload-signatures": "error",
"typescript/ban-ts-comment": "error",
"typescript/ban-types": "error",
"typescript/no-duplicate-enum-values": "error",
"typescript/no-empty-interface": "off",
"typescript/no-explicit-any": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-extraneous-class": [
"error",
{
"allowEmpty": true,
"allowConstructorOnly": true,
"allowWithDecorator": true
}
],
"typescript/no-misused-new": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-this-alias": "off",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unsafe-declaration-merging": "error",
"typescript/no-useless-empty-export": "error",
"typescript/prefer-function-type": "error",
"typescript/prefer-literal-enum-member": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/prefer-optional-chain": "off",
"unicorn/no-document-cookie": "error",
"unicorn/no-instanceof-array": "error",
"unicorn/no-thenable": "error",
"unicorn/no-useless-switch-case": "error",
"unicorn/prefer-array-flat": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/prefer-array-index-of": "error",
"unicorn/prefer-date-now": "error",
"unicorn/prefer-dom-node-text-content": "error",
"unicorn/prefer-math-min-max": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-number-properties": "off",
"typescript/triple-slash-reference": [
"error",
{
"path": "always",
"types": "always",
"lib": "always"
}
],
"eslint/no-new-native-nonconstructor": "error",
"typescript/await-thenable": "off",
"typescript/consistent-return": "off",
"typescript/dot-notation": "off",
"typescript/no-array-delete": "off",
"typescript/no-base-to-string": "off",
"typescript/no-confusing-void-expression": "off",
"typescript/no-deprecated": "off",
"typescript/no-duplicate-type-constituents": "off",
"typescript/no-floating-promises": "off",
"typescript/no-for-in-array": "off",
"typescript/no-generated-empty-object-type": "off",
"typescript/no-implied-eval": "off",
"typescript/no-meaningless-void-operator": "off",
"typescript/no-misused-promises": "off",
"typescript/no-misused-spread": "off",
"typescript/no-mixed-enums": "off",
"typescript/no-redundant-type-constituents": "off",
"typescript/no-unnecessary-boolean-literal-compare": "off",
"typescript/no-unnecessary-condition": "off",
"typescript/no-unnecessary-qualifier": "off",
"typescript/no-unnecessary-template-expression": "off",
"typescript/no-unnecessary-type-arguments": "off",
"typescript/no-unnecessary-type-assertion": "off",
"typescript/no-unnecessary-type-conversion": "off",
"typescript/no-unnecessary-type-parameters": "off",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-call": "off",
"typescript/no-unsafe-enum-comparison": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unsafe-return": "off",
"typescript/no-unsafe-unary-minus": "off",
"typescript/no-useless-default-assignment": "off",
"typescript/non-nullable-type-assertion-style": "off",
"typescript/only-throw-error": "off",
"typescript/prefer-find": "off",
"typescript/prefer-includes": "off",
"typescript/prefer-nullish-coalescing": "off",
"typescript/prefer-promise-reject-errors": "off",
"typescript/prefer-readonly": "off",
"typescript/prefer-readonly-parameter-types": "off",
"typescript/prefer-reduce-type-parameter": "off",
"typescript/prefer-regexp-exec": "off",
"typescript/prefer-return-this-type": "off",
"typescript/prefer-string-starts-ends-with": "off",
"typescript/promise-function-async": "off",
"typescript/related-getter-setter-pairs": "off",
"typescript/require-array-sort-compare": "off",
"typescript/require-await": "off",
"typescript/restrict-plus-operands": "off",
"typescript/restrict-template-expressions": "off",
"typescript/return-await": "off",
"typescript/strict-boolean-expressions": "off",
"typescript/strict-void-return": "off",
"typescript/switch-exhaustiveness-check": "off",
"typescript/unbound-method": "off",
"typescript/use-unknown-in-catch-callback-variable": "off",
"jest/valid-expect": "off",
"jest/no-conditional-expect": "off",
"jest/require-to-throw-message": "off",
"jest/expect-expect": "off",
"jest/valid-title": "off",
"jest/no-disabled-tests": "off",
"jest/no-standalone-expect": "off",
"unicorn/no-useless-spread": "off",
"unicorn/no-new-array": "off",
"unicorn/no-useless-fallback-in-spread": "off",
"unicorn/prefer-string-starts-ends-with": "off",
"unicorn/no-useless-length-check": "off",
"typescript/no-empty-object-type": "off",
"eslint/no-unused-expressions": "off",
"jest/valid-describe-callback": "off",
"eslint/no-restricted-globals": [
"error",
{
"name": "isNaN",
"message": "Use Number.isNaN (Biome noGlobalIsNan)."
},
{
"name": "isFinite",
"message": "Use Number.isFinite (Biome noGlobalIsFinite)."
}
],
"import/no-default-export": "error",
"typescript/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false
}
],
"omo/no-enum": "error",
"typescript/consistent-type-exports": "off",
"typescript/no-invalid-void-type": "error",
"omo/no-implicit-any-let": "error",
"omo/no-string-case-mismatch": "error",
"typescript/no-unsafe-type-assertion": "off"
},
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**"
],
"overrides": [
{
"files": [
"**/vitest.config.ts"
],
"rules": {
"import/no-default-export": "off"
}
}
]
}