@oxlint/migrate 0.16.9 → 0.16.10
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 +11 -9
- package/package.json +10 -4
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",
|
|
@@ -134,12 +135,12 @@ const styleRules = [
|
|
|
134
135
|
"init-declarations",
|
|
135
136
|
"max-params",
|
|
136
137
|
"new-cap",
|
|
138
|
+
"no-duplicate-imports",
|
|
137
139
|
"no-extra-label",
|
|
138
|
-
"no-multi-assign",
|
|
139
|
-
"no-nested-ternary",
|
|
140
140
|
"no-labels",
|
|
141
141
|
"no-lone-blocks",
|
|
142
|
-
"no-
|
|
142
|
+
"no-multi-assign",
|
|
143
|
+
"no-nested-ternary",
|
|
143
144
|
"no-continue",
|
|
144
145
|
"no-label-var",
|
|
145
146
|
"no-magic-numbers",
|
|
@@ -300,9 +301,9 @@ const styleRules = [
|
|
|
300
301
|
];
|
|
301
302
|
const restrictionRules = [
|
|
302
303
|
"default-case",
|
|
303
|
-
"no-restricted-imports",
|
|
304
304
|
"no-alert",
|
|
305
305
|
"no-bitwise",
|
|
306
|
+
"no-restricted-imports",
|
|
306
307
|
"no-console",
|
|
307
308
|
"no-div-regex",
|
|
308
309
|
"no-empty-function",
|
|
@@ -374,6 +375,7 @@ const correctnessRules = [
|
|
|
374
375
|
"no-async-promise-executor",
|
|
375
376
|
"no-caller",
|
|
376
377
|
"no-class-assign",
|
|
378
|
+
"no-useless-backreference",
|
|
377
379
|
"no-compare-neg-zero",
|
|
378
380
|
"no-cond-assign",
|
|
379
381
|
"no-const-assign",
|
|
@@ -559,8 +561,8 @@ const nurseryRules = [
|
|
|
559
561
|
"import-x/named"
|
|
560
562
|
];
|
|
561
563
|
const perfRules = [
|
|
562
|
-
"no-useless-call",
|
|
563
564
|
"no-await-in-loop",
|
|
565
|
+
"no-useless-call",
|
|
564
566
|
"react/no-array-index-key",
|
|
565
567
|
"react-perf/jsx-no-jsx-as-prop",
|
|
566
568
|
"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.10",
|
|
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"
|
|
@@ -57,7 +61,7 @@
|
|
|
57
61
|
"eslint-plugin-unicorn": "^59.0.0",
|
|
58
62
|
"husky": "^9.1.7",
|
|
59
63
|
"lint-staged": "^15.4.3",
|
|
60
|
-
"oxlint": "^0.16.
|
|
64
|
+
"oxlint": "^0.16.10",
|
|
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
81
|
"packageManager": "pnpm@10.7.1"
|
|
76
82
|
}
|