@oxlint/migrate 1.15.0 → 1.16.0
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
CHANGED
|
@@ -115,6 +115,7 @@ const styleRules = [
|
|
|
115
115
|
"init-declarations",
|
|
116
116
|
"max-params",
|
|
117
117
|
"new-cap",
|
|
118
|
+
"no-useless-computed-key",
|
|
118
119
|
"no-duplicate-imports",
|
|
119
120
|
"no-extra-label",
|
|
120
121
|
"no-labels",
|
|
@@ -308,6 +309,7 @@ const suspiciousRules = [
|
|
|
308
309
|
"no-unexpected-multiline",
|
|
309
310
|
"no-useless-concat",
|
|
310
311
|
"no-useless-constructor",
|
|
312
|
+
"preserve-caught-error",
|
|
311
313
|
"import/no-unassigned-import",
|
|
312
314
|
"import/no-empty-named-blocks",
|
|
313
315
|
"import/no-absolute-path",
|
|
@@ -348,6 +350,7 @@ const suspiciousRules = [
|
|
|
348
350
|
"vitest/no-commented-out-tests"
|
|
349
351
|
];
|
|
350
352
|
const restrictionRules = [
|
|
353
|
+
"class-methods-use-this",
|
|
351
354
|
"default-case",
|
|
352
355
|
"no-alert",
|
|
353
356
|
"no-bitwise",
|
|
@@ -413,6 +416,7 @@ const restrictionRules = [
|
|
|
413
416
|
"unicorn/prefer-node-protocol",
|
|
414
417
|
"unicorn/prefer-number-properties",
|
|
415
418
|
"vue/no-multiple-slot-args",
|
|
419
|
+
"@typescript-eslint/class-methods-use-this",
|
|
416
420
|
"@typescript-eslint/no-restricted-imports",
|
|
417
421
|
"@typescript-eslint/no-empty-function",
|
|
418
422
|
"@typescript-eslint/no-unused-expressions",
|
|
@@ -13,20 +13,20 @@ const normalizeSeverityValue = (value) => {
|
|
|
13
13
|
}
|
|
14
14
|
if (isWarnValue(value)) {
|
|
15
15
|
if (Array.isArray(value)) {
|
|
16
|
-
value[0]
|
|
16
|
+
value[0] = "warn";
|
|
17
17
|
return value;
|
|
18
18
|
}
|
|
19
19
|
return "warn";
|
|
20
20
|
} else if (isErrorValue(value)) {
|
|
21
21
|
if (Array.isArray(value)) {
|
|
22
|
-
value[0]
|
|
22
|
+
value[0] = "error";
|
|
23
23
|
return value;
|
|
24
24
|
}
|
|
25
25
|
return "error";
|
|
26
26
|
}
|
|
27
27
|
if (isOffValue(value)) {
|
|
28
28
|
if (Array.isArray(value)) {
|
|
29
|
-
value[0]
|
|
29
|
+
value[0] = "off";
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
32
|
return "off";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"generate": "node --import @oxc-node/core/register ./scripts/generate.ts",
|
|
20
20
|
"format": "npx prettier --write .",
|
|
21
21
|
"type-check": "tsc --noEmit",
|
|
22
|
-
"lint": "oxlint",
|
|
22
|
+
"lint": "oxlint --type-aware",
|
|
23
23
|
"test": "vitest",
|
|
24
24
|
"build": "vite build",
|
|
25
25
|
"manual-test": "pnpm build; chmod +x dist/bin/oxlint-migrate.mjs; npx ."
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-header": "^3.1.1",
|
|
56
56
|
"eslint-plugin-import": "^2.32.0",
|
|
57
57
|
"eslint-plugin-import-x": "^4.16.0",
|
|
58
|
-
"eslint-plugin-jsdoc": "^
|
|
58
|
+
"eslint-plugin-jsdoc": "^57.0.0",
|
|
59
59
|
"eslint-plugin-local": "^6.0.0",
|
|
60
60
|
"eslint-plugin-oxlint": "^1.3.0",
|
|
61
61
|
"eslint-plugin-react": "^7.37.5",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"jiti": "^2.4.2",
|
|
68
68
|
"lint-staged": "^16.1.2",
|
|
69
69
|
"next": "^15.5.0",
|
|
70
|
-
"oxlint": "^1.
|
|
71
|
-
"oxlint-tsgolint": "^0.
|
|
70
|
+
"oxlint": "^1.16.0",
|
|
71
|
+
"oxlint-tsgolint": "^0.2.0",
|
|
72
72
|
"prettier": "^3.6.1",
|
|
73
73
|
"typescript": "^5.8.3",
|
|
74
74
|
"typescript-eslint": "^8.35.0",
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"commander": "^14.0.0",
|
|
84
84
|
"globals": "^16.3.0",
|
|
85
|
-
"oxc-parser": "^0.
|
|
85
|
+
"oxc-parser": "^0.89.0",
|
|
86
86
|
"tinyglobby": "^0.2.14"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"jiti": "*"
|
|
90
90
|
},
|
|
91
|
-
"packageManager": "pnpm@10.
|
|
91
|
+
"packageManager": "pnpm@10.16.1"
|
|
92
92
|
}
|