Skip to content

Commit d8dd2f4

Browse files
committed
Revert "chore(devdeps): update oxlint monorepo to v1.16.0 (#5566)"
This reverts commit 88a4577.
1 parent 88a4577 commit d8dd2f4

File tree

103 files changed

+1369
-1562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1369
-1562
lines changed

.oxlintrc.json

Lines changed: 80 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"categories": {
4-
"correctness": "deny",
5-
"nursery": "off",
6-
"pedantic": "deny",
7-
"perf": "deny",
8-
"restriction": "deny",
9-
"style": "deny",
10-
"suspicious": "deny"
11-
},
123
"ignorePatterns": [
134
"**/app.config.d.ts",
145
"**/package.config.d.ts",
@@ -17,23 +8,32 @@
178
"*.d.ts",
189
"svgo.config.mjs"
1910
],
11+
"categories": {
12+
"correctness": "deny",
13+
"style": "deny",
14+
"suspicious": "deny",
15+
"perf": "deny",
16+
"pedantic": "deny",
17+
"restriction": "deny",
18+
"nursery": "off"
19+
},
20+
"plugins": [
21+
"import",
22+
"node",
23+
"oxc",
24+
"react",
25+
"typescript",
26+
"unicorn",
27+
"jsx-a11y"
28+
],
2029
"overrides": [
2130
{
22-
"files": [
23-
"**/__stories__/**/*.{ts,tsx}",
24-
"**/__tests__/**/*.{ts,tsx}",
25-
".storybook/**/*.{ts,tsx}",
26-
"exemples/**",
27-
".storybook/**/*.{ts,tsx}"
28-
],
31+
"files": ["**/__stories__/**/*.{ts,tsx}", "**/__tests__/**/*.{ts,tsx}", ".storybook/**/*.{ts,tsx}"],
2932
"rules": {
30-
"eslint/no-alert": "off",
3133
"eslint/no-console": "off",
34+
"eslint/no-alert": "off",
3235
"import/no-anonymous-default-export": "off",
33-
"import/no-named-export": "off",
34-
"import/no-unassigned-import": "off",
35-
"react/jsx-pascal-case": "off",
36-
"react/only-export-components": "off"
36+
"import/no-unassigned-import": "off"
3737
}
3838
},
3939
{
@@ -45,40 +45,46 @@
4545
"setup.ts",
4646
"vitest.setup.ts",
4747
"**/vitest.setup.ts",
48-
"*.config.ts",
49-
"**/vitest/setup.ts"
48+
"*.config.ts"
5049
],
5150
"plugins": ["import", "oxc", "vitest"],
5251
"rules": {
5352
"@typescript-eslint/consistent-type-imports": "off",
53+
"import/no-namespace": "off",
5454
"import/export": "off",
5555
"import/no-anonymous-default-export": "off",
56-
"import/no-named-export": "off",
57-
"import/no-namespace": "off",
5856
"import/no-unassigned-import": "off",
5957
"jsx_a11y/label-has-associated-control": "off",
60-
"no-console": "off",
61-
"node/no-process-env": "off",
62-
"vitest/prefer-lowercase-title": "error"
63-
}
64-
},
65-
{
66-
"files": ["e2e/**/*.{ts,tsx}"],
67-
"rules": {
68-
"node/no-process-env": "off"
58+
"vitest/prefer-lowercase-title": "error",
59+
"no-console": "off"
6960
}
7061
}
7162
],
72-
"plugins": [
73-
"import",
74-
"node",
75-
"oxc",
76-
"react",
77-
"typescript",
78-
"unicorn",
79-
"jsx-a11y"
80-
],
8163
"rules": {
64+
"jsx_a11y/label-has-associated-control": "off",
65+
"jsx_a11y/no-autofocus": "off",
66+
"jsx_a11y/prefer-tag-over-role": "off",
67+
"import/default": "error",
68+
"import/export": "off",
69+
"import/exports-last": "off",
70+
"import/max-dependencies": "off",
71+
"import/named": "error",
72+
"import/no-amd": "error",
73+
"import/consistent-type-specifier-style": "error",
74+
"import/group-exports": "off",
75+
"import/import-no-namespace": "off",
76+
"import/namespace": "off",
77+
"import/no-cycle": "error",
78+
"import/no-default-export": "off",
79+
"import/no-duplicates": "error",
80+
"import/no-named-as-default-member": "error",
81+
"import/no-named-as-default": "error",
82+
"import/no-self-import": "error",
83+
"import/no-unassigned-import": "off",
84+
"import/no-unused-modules": "off",
85+
"import/prefer-default-export": "off",
86+
"import/no-namespace": "off",
87+
"import/unambiguous": "error",
8288
"@typescript-eslint/adjacent-overload-signatures": "error",
8389
"@typescript-eslint/array-type": "error",
8490
"@typescript-eslint/ban-ts-comment": "error",
@@ -91,47 +97,42 @@
9197
"@typescript-eslint/no-duplicate-enum-values": "error",
9298
"@typescript-eslint/no-empty-interface": "error",
9399
"@typescript-eslint/no-explicit-any": "error",
94-
"@typescript-eslint/no-extra-non-null-assertion": "error",
95100
"@typescript-eslint/no-magic-numbers": "off",
101+
"@typescript-eslint/no-extra-non-null-assertion": "error",
96102
"@typescript-eslint/no-misused-new": "error",
97103
"@typescript-eslint/no-namespace": "error",
98104
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
99105
"@typescript-eslint/no-non-null-assertion": "off",
100106
"@typescript-eslint/no-this-alias": "error",
101107
"@typescript-eslint/no-unnecessary-type-constraint": "error",
102108
"@typescript-eslint/no-unsafe-declaration-merging": "error",
103-
"@typescript-eslint/no-unsafe-member-access": "error",
104109
"@typescript-eslint/no-var-requires": "error",
105110
"@typescript-eslint/prefer-as-const": "error",
111+
"@typescript-eslint/no-unsafe-member-access": "error",
106112
"@typescript-eslint/prefer-enum-initializers": "off",
107113
"@typescript-eslint/prefer-for-of": "error",
108114
"@typescript-eslint/prefer-function-type": "off",
109115
"@typescript-eslint/prefer-literal-enum-member": "off",
110116
"@typescript-eslint/prefer-ts-expect-error": "off",
111117
"@typescript-eslint/triple-slash-reference": "error",
112-
"arrow-body-style": "off",
118+
"eslint/yoda": "error",
113119
"eslint/array-callback-return": "error",
114120
"eslint/constructor-super": "error",
115121
"eslint/default-case-last": "error",
116122
"eslint/default-param-last": "off",
117123
"eslint/eqeqeq": "error",
118124
"eslint/for-direction": "error",
119-
"eslint/func-style": "off",
120125
"eslint/getter-return": "error",
121126
"eslint/guard-for-in": "error",
122-
"eslint/id-length": "off",
123-
"eslint/init-declarations": "off",
124127
"eslint/max-classes-per-file": "error",
125-
"eslint/max-depth": "off",
126128
"eslint/max-lines": "off",
127-
"eslint/max-lines-per-function": "off",
128-
"eslint/max-nested-callbacks": "off",
129129
"eslint/max-params": "off",
130130
"eslint/no-array-constructor": "error",
131131
"eslint/no-async-promise-executor": "error",
132132
"eslint/no-await-in-loop": "off",
133133
"eslint/no-bitwise": "error",
134134
"eslint/no-caller": "error",
135+
"eslint/id-length": "off",
135136
"eslint/no-case-declarations": "error",
136137
"eslint/no-class-assign": "error",
137138
"eslint/no-compare-neg-zero": "error",
@@ -149,11 +150,11 @@
149150
"eslint/no-dupe-keys": "error",
150151
"eslint/no-duplicate-case": "error",
151152
"eslint/no-duplicate-imports": "off",
152-
"eslint/no-empty": "error",
153153
"eslint/no-empty-character-class": "error",
154154
"eslint/no-empty-function": "off",
155155
"eslint/no-empty-pattern": "error",
156156
"eslint/no-empty-static-block": "error",
157+
"eslint/no-empty": "error",
157158
"eslint/no-eq-null": "error",
158159
"eslint/no-eval": "error",
159160
"eslint/no-ex-assign": "error",
@@ -194,6 +195,8 @@
194195
"eslint/no-unsafe-optional-chaining": "error",
195196
"eslint/no-unused-labels": "error",
196197
"eslint/no-unused-private-class-members": "error",
198+
"eslint/sort-keys": "off",
199+
"eslint/react-in-jsx-scope": "off",
197200
"eslint/no-unused-vars": [
198201
"error",
199202
{
@@ -207,7 +210,6 @@
207210
"eslint/no-void": "error",
208211
"eslint/no-with": "error",
209212
"eslint/radix": "error",
210-
"eslint/react-in-jsx-scope": "off",
211213
"eslint/require-await": "off",
212214
"eslint/require-yield": "error",
213215
"eslint/sort-imports": [
@@ -217,71 +219,45 @@
217219
"memberSyntaxSortOrder": ["single", "multiple", "all", "none"]
218220
}
219221
],
220-
"eslint/sort-keys": "off",
221222
"eslint/unicode-bom": "error",
222223
"eslint/use-isnan": "error",
223224
"eslint/valid-typeof": "error",
224-
"eslint/yoda": "error",
225-
"import/consistent-type-specifier-style": "error",
226-
"import/default": "error",
227-
"import/export": "off",
228-
"import/exports-last": "off",
229-
"import/group-exports": "off",
230-
"import/import-no-namespace": "off",
231-
"import/max-dependencies": "off",
232-
"import/named": "error",
233-
"import/namespace": "off",
234-
"import/no-amd": "error",
235-
"import/no-anonymous-default-export": "off",
236-
"import/no-cycle": "error",
237-
"import/no-default-export": "off",
238-
"import/no-duplicates": "error",
239-
"import/no-named-as-default": "error",
240-
"import/no-named-as-default-member": "error",
241-
"import/no-named-export": "off",
242-
"import/no-namespace": "off",
243-
"import/no-self-import": "error",
244-
"import/no-unassigned-import": "off",
245-
"import/no-unused-modules": "off",
246-
"import/prefer-default-export": "off",
247-
"import/unambiguous": "error",
248-
"jsx_a11y/label-has-associated-control": "off",
249-
"jsx_a11y/no-autofocus": "off",
250-
"jsx_a11y/prefer-tag-over-role": "off",
225+
"eslint/init-declarations": "off",
226+
"eslint/func-style": "off",
227+
"eslint/max-lines-per-function": "off",
228+
"eslint/max-nested-callbacks": "off",
229+
"eslint/max-depth": "off",
251230
"oxc/bad-bitwise-operator": "error",
252231
"oxc/no-accumulating-spread": "off",
253232
"oxc/no-async-await": "off",
254233
"oxc/no-barrel-file": "off",
255234
"oxc/no-const-enum": "error",
256235
"oxc/no-optional-chaining": "off",
257236
"oxc/no-rest-spread-properties": "off",
258-
"prefer-destructuring": "off",
259-
"react_perf/jsx-no-jsx-as-prop": "error",
260-
"react_perf/jsx-no-new-array-as-prop": "error",
261-
"react_perf/jsx-no-new-function-as-props": "error",
262-
"react_perf/jsx-no-new-object-as-prop": "error",
263237
"react-perf/jsx-no-jsx-as-prop": "off",
264238
"react-perf/jsx-no-new-array-as-prop": "off",
265239
"react-perf/jsx-no-new-function-as-prop": "off",
266240
"react-perf/jsx-no-new-object-as-prop": "off",
241+
"react_perf/jsx-no-jsx-as-prop": "error",
242+
"react_perf/jsx-no-new-array-as-prop": "error",
243+
"react_perf/jsx-no-new-function-as-props": "error",
244+
"react_perf/jsx-no-new-object-as-prop": "error",
267245
"react/button-has-type": "off",
268246
"react/exhaustive-deps": "error",
269-
"react/iframe-missing-sandbox": "error",
270247
"react/jsx-filename-extension": [
271248
"error",
272249
{
273250
"extensions": [".jsx", ".tsx"]
274251
}
275252
],
276-
"react/jsx-handler-names": "off",
253+
"react/iframe-missing-sandbox": "error",
277254
"react/jsx-key": "error",
278255
"react/jsx-no-comment-text-nodes": "error",
279256
"react/jsx-no-duplicate-props": "error",
280257
"react/jsx-no-target-blank": "off",
281258
"react/jsx-no-undef": "error",
282259
"react/jsx-no-useless-fragment": "off",
283260
"react/no-children-prop": "error",
284-
"react/no-danger": "off",
285261
"react/no-dangerously-set-inner-html": "error",
286262
"react/no-direct-mutation-state": "error",
287263
"react/no-find-dom-node": "error",
@@ -293,7 +269,13 @@
293269
"react/no-unknown-property": "error",
294270
"react/react-in-jsx-scope": "off",
295271
"react/require-render-return": "error",
296-
"typescript/explicit-module-boundary-types": "off",
272+
"react/no-danger": "off",
273+
"unicorn/no-instanceof-builtins": "error",
274+
"unicorn/prefer-array-index-of": "off",
275+
"unicorn/prefer-array-find": "off",
276+
"unicorn/no-for-loop": "off",
277+
"unicorn/prefer-object-from-entries": "off",
278+
"unicorn/prefer-global-this": "off",
297279
"unicorn/catch-error-name": "error",
298280
"unicorn/empty-brace-spaces": "error",
299281
"unicorn/error-message": "off",
@@ -307,13 +289,12 @@
307289
"unicorn/no-array-reduce": "off",
308290
"unicorn/no-await-expression-member": "off",
309291
"unicorn/no-await-in-promise-methods": "off",
292+
"unicorn/prefer-set-has": "off",
310293
"unicorn/no-console-spaces": "error",
311294
"unicorn/no-document-cookie": "off",
312295
"unicorn/no-empty-file": "error",
313-
"unicorn/no-for-loop": "off",
314296
"unicorn/no-hex-escape": "error",
315297
"unicorn/no-instanceof-array": "error",
316-
"unicorn/no-instanceof-builtins": "error",
317298
"unicorn/no-invalid-remove-event-listener": "off",
318299
"unicorn/no-lonely-if": "error",
319300
"unicorn/no-magic-array-flat-depth": "off",
@@ -342,10 +323,8 @@
342323
"unicorn/number-literal-case": "off",
343324
"unicorn/numeric-separators-style": "off",
344325
"unicorn/prefer-add-event-listener": "off",
345-
"unicorn/prefer-array-find": "off",
346326
"unicorn/prefer-array-flat": "error",
347327
"unicorn/prefer-array-flat-map": "error",
348-
"unicorn/prefer-array-index-of": "off",
349328
"unicorn/prefer-array-some": "off",
350329
"unicorn/prefer-blob-reading-methods": "off",
351330
"unicorn/prefer-code-point": "off",
@@ -355,7 +334,6 @@
355334
"unicorn/prefer-dom-node-remove": "off",
356335
"unicorn/prefer-dom-node-text-content": "error",
357336
"unicorn/prefer-event-target": "error",
358-
"unicorn/prefer-global-this": "off",
359337
"unicorn/prefer-includes": "error",
360338
"unicorn/prefer-logical-operator-over-ternary": "off",
361339
"unicorn/prefer-math-trunc": "error",
@@ -364,13 +342,11 @@
364342
"unicorn/prefer-native-coercion-functions": "error",
365343
"unicorn/prefer-node-protocol": "off",
366344
"unicorn/prefer-number-properties": "error",
367-
"unicorn/prefer-object-from-entries": "off",
368345
"unicorn/prefer-optional-catch-binding": "error",
369346
"unicorn/prefer-prototype-methods": "error",
370347
"unicorn/prefer-query-selector": "off",
371348
"unicorn/prefer-reflect-apply": "error",
372349
"unicorn/prefer-regexp-test": "error",
373-
"unicorn/prefer-set-has": "off",
374350
"unicorn/prefer-set-size": "error",
375351
"unicorn/prefer-spread": "error",
376352
"unicorn/prefer-string-replace-all": "off",
@@ -382,7 +358,12 @@
382358
"unicorn/require-number-to-fixed-digits-argument": "error",
383359
"unicorn/switch-case-braces": "error",
384360
"unicorn/text-encoding-identifier-case": "error",
385-
"unicorn/throw-new-error": "error"
361+
"unicorn/throw-new-error": "error",
362+
"arrow-body-style": "off",
363+
"typescript/explicit-module-boundary-types": "off",
364+
"prefer-destructuring": "off",
365+
"import/no-anonymous-default-export": "off",
366+
"react/jsx-handler-names": "off"
386367
},
387368
"settings": {
388369
"jsx-a11y": {

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
},
1212
"includes": [
1313
"!**/package.json",
14-
".oxlintrc.json",
1514
"**/*.ts",
1615
"**/*.tsx",
1716
"!**/dist/**",

e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@types/react": "19.2.2",
2828
"@types/react-dom": "19.2.2",
2929
"@vitejs/plugin-react": "5.0.4",
30-
"eslint": "9.39.1",
30+
"eslint": "9.38.0",
3131
"eslint-plugin-react-hooks": "6.1.1",
3232
"eslint-plugin-react-refresh": "0.4.24",
3333
"globals": "16.4.0",

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const dirname = path.dirname(filename)
1717
const disableRules = {
1818
// ---- biome rules ----
1919
'import/order': 'off',
20-
"sort-imports": "off",
2120
'import/no-unresolved': 'off',
2221
'@stylistic/no-extra-semi': 'off',
2322
'@stylistic/brace-style': 'off',

0 commit comments

Comments
 (0)