@oxlint/migrate 1.15.0 → 1.17.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.
@@ -1,4 +1,4 @@
1
- const version = "1.15.0";
1
+ const version = "1.17.0";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -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",
@@ -260,6 +261,7 @@ const styleRules = [
260
261
  "vitest/prefer-to-be-truthy",
261
262
  "vue/define-emits-declaration",
262
263
  "vue/define-props-declaration",
264
+ "vue/require-typed-ref",
263
265
  "@typescript-eslint/default-param-last",
264
266
  "@typescript-eslint/init-declarations",
265
267
  "@typescript-eslint/max-params",
@@ -308,6 +310,7 @@ const suspiciousRules = [
308
310
  "no-unexpected-multiline",
309
311
  "no-useless-concat",
310
312
  "no-useless-constructor",
313
+ "preserve-caught-error",
311
314
  "import/no-unassigned-import",
312
315
  "import/no-empty-named-blocks",
313
316
  "import/no-absolute-path",
@@ -338,6 +341,7 @@ const suspiciousRules = [
338
341
  "unicorn/no-accessor-recursion",
339
342
  "unicorn/prefer-add-event-listener",
340
343
  "unicorn/require-post-message-target-origin",
344
+ "vue/no-required-prop-with-default",
341
345
  "@typescript-eslint/no-useless-constructor",
342
346
  "import-x/no-unassigned-import",
343
347
  "import-x/no-empty-named-blocks",
@@ -348,6 +352,7 @@ const suspiciousRules = [
348
352
  "vitest/no-commented-out-tests"
349
353
  ];
350
354
  const restrictionRules = [
355
+ "class-methods-use-this",
351
356
  "default-case",
352
357
  "no-alert",
353
358
  "no-bitwise",
@@ -413,6 +418,7 @@ const restrictionRules = [
413
418
  "unicorn/prefer-node-protocol",
414
419
  "unicorn/prefer-number-properties",
415
420
  "vue/no-multiple-slot-args",
421
+ "@typescript-eslint/class-methods-use-this",
416
422
  "@typescript-eslint/no-restricted-imports",
417
423
  "@typescript-eslint/no-empty-function",
418
424
  "@typescript-eslint/no-unused-expressions",
@@ -623,6 +629,7 @@ const correctnessRules = [
623
629
  ];
624
630
  const nurseryRules = [
625
631
  "getter-return",
632
+ "no-misleading-character-class",
626
633
  "no-undef",
627
634
  "no-unreachable",
628
635
  "import/export",
@@ -13,20 +13,20 @@ const normalizeSeverityValue = (value) => {
13
13
  }
14
14
  if (isWarnValue(value)) {
15
15
  if (Array.isArray(value)) {
16
- value[0] == "warn";
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] == "error";
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] == "off";
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.15.0",
3
+ "version": "1.17.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": "^54.0.0",
58
+ "eslint-plugin-jsdoc": "^60.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.15.0",
71
- "oxlint-tsgolint": "^0.1.5",
70
+ "oxlint": "^1.17.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.87.0",
85
+ "oxc-parser": "^0.90.0",
86
86
  "tinyglobby": "^0.2.14"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "jiti": "*"
90
90
  },
91
- "packageManager": "pnpm@10.15.1"
91
+ "packageManager": "pnpm@10.17.0"
92
92
  }