@oxlint/migrate 0.16.9 → 0.16.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json.mjs +1 -1
- package/dist/src/generated/rules.mjs +17 -10
- package/package.json +13 -7
package/dist/package.json.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const pedanticRules = [
|
|
2
2
|
"array-callback-return",
|
|
3
3
|
"eqeqeq",
|
|
4
|
-
"max-nested-callbacks",
|
|
5
|
-
"max-lines-per-function",
|
|
6
4
|
"max-classes-per-file",
|
|
7
5
|
"max-depth",
|
|
6
|
+
"max-lines-per-function",
|
|
8
7
|
"max-lines",
|
|
9
|
-
"
|
|
10
|
-
"no-object-constructor",
|
|
8
|
+
"max-nested-callbacks",
|
|
11
9
|
"no-array-constructor",
|
|
12
10
|
"no-case-declarations",
|
|
11
|
+
"no-lonely-if",
|
|
12
|
+
"no-object-constructor",
|
|
13
13
|
"no-constructor-return",
|
|
14
14
|
"no-else-return",
|
|
15
15
|
"no-fallthrough",
|
|
@@ -47,6 +47,7 @@ const pedanticRules = [
|
|
|
47
47
|
"unicorn/escape-case",
|
|
48
48
|
"unicorn/explicit-length-check",
|
|
49
49
|
"unicorn/new-for-builtins",
|
|
50
|
+
"unicorn/no-unnecessary-slice-end",
|
|
50
51
|
"unicorn/no-hex-escape",
|
|
51
52
|
"unicorn/no-instanceof-array",
|
|
52
53
|
"unicorn/no-lonely-if",
|
|
@@ -93,6 +94,7 @@ const suspiciousRules = [
|
|
|
93
94
|
"no-unexpected-multiline",
|
|
94
95
|
"no-useless-concat",
|
|
95
96
|
"no-useless-constructor",
|
|
97
|
+
"import/no-unassigned-import",
|
|
96
98
|
"import/no-empty-named-blocks",
|
|
97
99
|
"import/no-absolute-path",
|
|
98
100
|
"import/no-duplicates",
|
|
@@ -115,6 +117,7 @@ const suspiciousRules = [
|
|
|
115
117
|
"unicorn/prefer-add-event-listener",
|
|
116
118
|
"unicorn/require-post-message-target-origin",
|
|
117
119
|
"@typescript-eslint/no-useless-constructor",
|
|
120
|
+
"import-x/no-unassigned-import",
|
|
118
121
|
"import-x/no-empty-named-blocks",
|
|
119
122
|
"import-x/no-absolute-path",
|
|
120
123
|
"import-x/no-duplicates",
|
|
@@ -134,12 +137,12 @@ const styleRules = [
|
|
|
134
137
|
"init-declarations",
|
|
135
138
|
"max-params",
|
|
136
139
|
"new-cap",
|
|
140
|
+
"no-duplicate-imports",
|
|
137
141
|
"no-extra-label",
|
|
138
|
-
"no-multi-assign",
|
|
139
|
-
"no-nested-ternary",
|
|
140
142
|
"no-labels",
|
|
141
143
|
"no-lone-blocks",
|
|
142
|
-
"no-
|
|
144
|
+
"no-multi-assign",
|
|
145
|
+
"no-nested-ternary",
|
|
143
146
|
"no-continue",
|
|
144
147
|
"no-label-var",
|
|
145
148
|
"no-magic-numbers",
|
|
@@ -161,6 +164,7 @@ const styleRules = [
|
|
|
161
164
|
"sort-keys",
|
|
162
165
|
"vars-on-top",
|
|
163
166
|
"yoda",
|
|
167
|
+
"import/consistent-type-specifier-style",
|
|
164
168
|
"import/exports-last",
|
|
165
169
|
"import/first",
|
|
166
170
|
"import/group-exports",
|
|
@@ -224,6 +228,7 @@ const styleRules = [
|
|
|
224
228
|
"@typescript-eslint/consistent-generic-constructors",
|
|
225
229
|
"@typescript-eslint/consistent-indexed-object-style",
|
|
226
230
|
"@typescript-eslint/consistent-type-definitions",
|
|
231
|
+
"@typescript-eslint/consistent-type-imports",
|
|
227
232
|
"@typescript-eslint/no-inferrable-types",
|
|
228
233
|
"@typescript-eslint/no-empty-interface",
|
|
229
234
|
"@typescript-eslint/prefer-for-of",
|
|
@@ -266,6 +271,7 @@ const styleRules = [
|
|
|
266
271
|
"@typescript-eslint/init-declarations",
|
|
267
272
|
"@typescript-eslint/max-params",
|
|
268
273
|
"@typescript-eslint/no-magic-numbers",
|
|
274
|
+
"import-x/consistent-type-specifier-style",
|
|
269
275
|
"import-x/exports-last",
|
|
270
276
|
"import-x/first",
|
|
271
277
|
"import-x/group-exports",
|
|
@@ -300,9 +306,9 @@ const styleRules = [
|
|
|
300
306
|
];
|
|
301
307
|
const restrictionRules = [
|
|
302
308
|
"default-case",
|
|
303
|
-
"no-restricted-imports",
|
|
304
309
|
"no-alert",
|
|
305
310
|
"no-bitwise",
|
|
311
|
+
"no-restricted-imports",
|
|
306
312
|
"no-console",
|
|
307
313
|
"no-div-regex",
|
|
308
314
|
"no-empty-function",
|
|
@@ -332,6 +338,7 @@ const restrictionRules = [
|
|
|
332
338
|
"promise/catch-or-return",
|
|
333
339
|
"promise/spec-only",
|
|
334
340
|
"react/button-has-type",
|
|
341
|
+
"react/forbid-elements",
|
|
335
342
|
"react/jsx-filename-extension",
|
|
336
343
|
"react/no-danger",
|
|
337
344
|
"react/no-unknown-property",
|
|
@@ -374,6 +381,7 @@ const correctnessRules = [
|
|
|
374
381
|
"no-async-promise-executor",
|
|
375
382
|
"no-caller",
|
|
376
383
|
"no-class-assign",
|
|
384
|
+
"no-useless-backreference",
|
|
377
385
|
"no-compare-neg-zero",
|
|
378
386
|
"no-cond-assign",
|
|
379
387
|
"no-const-assign",
|
|
@@ -554,13 +562,12 @@ const nurseryRules = [
|
|
|
554
562
|
"promise/no-return-in-finally",
|
|
555
563
|
"react-hooks/exhaustive-deps",
|
|
556
564
|
"react/require-render-return",
|
|
557
|
-
"@typescript-eslint/consistent-type-imports",
|
|
558
565
|
"import-x/export",
|
|
559
566
|
"import-x/named"
|
|
560
567
|
];
|
|
561
568
|
const perfRules = [
|
|
562
|
-
"no-useless-call",
|
|
563
569
|
"no-await-in-loop",
|
|
570
|
+
"no-useless-call",
|
|
564
571
|
"react/no-array-index-key",
|
|
565
572
|
"react-perf/jsx-no-jsx-as-prop",
|
|
566
573
|
"react-perf/jsx-no-new-array-as-prop",
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.11",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"@oxlint/migrate": "./dist/bin/oxlint-migrate.mjs"
|
|
8
8
|
},
|
|
9
|
+
"exports": {
|
|
10
|
+
"import": "./dist/src/index.mjs",
|
|
11
|
+
"types": "./dist/src/index.d.ts"
|
|
12
|
+
},
|
|
9
13
|
"repository": {
|
|
10
14
|
"type": "git",
|
|
11
15
|
"url": "https://github.com/oxc-project/oxlint-migrate"
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
"@eslint/eslintrc": "^3.3.0",
|
|
38
42
|
"@eslint/js": "^9.20.0",
|
|
39
43
|
"@logux/eslint-config": "^55.0.0",
|
|
40
|
-
"@oxc-node/core": "^0.0.
|
|
44
|
+
"@oxc-node/core": "^0.0.27",
|
|
41
45
|
"@stylistic/eslint-plugin": "^4.0.1",
|
|
42
46
|
"@stylistic/eslint-plugin-ts": "^4.0.0",
|
|
43
47
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
@@ -56,8 +60,8 @@
|
|
|
56
60
|
"eslint-plugin-regexp": "^2.7.0",
|
|
57
61
|
"eslint-plugin-unicorn": "^59.0.0",
|
|
58
62
|
"husky": "^9.1.7",
|
|
59
|
-
"lint-staged": "^
|
|
60
|
-
"oxlint": "^0.16.
|
|
63
|
+
"lint-staged": "^16.0.0",
|
|
64
|
+
"oxlint": "^0.16.11",
|
|
61
65
|
"prettier": "^3.5.1",
|
|
62
66
|
"typescript": "^5.7.3",
|
|
63
67
|
"typescript-eslint": "^8.24.0",
|
|
@@ -69,8 +73,10 @@
|
|
|
69
73
|
"*": "prettier --ignore-unknown --write"
|
|
70
74
|
},
|
|
71
75
|
"dependencies": {
|
|
72
|
-
"commander": "^13.1.0"
|
|
73
|
-
|
|
76
|
+
"commander": "^13.1.0"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"globals": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
74
80
|
},
|
|
75
|
-
"packageManager": "pnpm@10.
|
|
81
|
+
"packageManager": "pnpm@10.10.0"
|
|
76
82
|
}
|