@oxlint/migrate 1.19.0 → 1.21.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.19.0";
1
+ const version = "1.21.0";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -62,6 +62,7 @@ const pedanticRules = [
62
62
  "unicorn/escape-case",
63
63
  "unicorn/explicit-length-check",
64
64
  "unicorn/new-for-builtins",
65
+ "unicorn/no-unnecessary-array-splice-count",
65
66
  "unicorn/no-array-callback-reference",
66
67
  "unicorn/no-unnecessary-array-flat-depth",
67
68
  "unicorn/no-unnecessary-slice-end",
@@ -78,6 +79,8 @@ const pedanticRules = [
78
79
  "unicorn/no-useless-promise-resolve-reject",
79
80
  "unicorn/no-useless-switch-case",
80
81
  "unicorn/no-useless-undefined",
82
+ "unicorn/prefer-top-level-await",
83
+ "unicorn/prefer-at",
81
84
  "unicorn/prefer-array-flat",
82
85
  "unicorn/prefer-array-some",
83
86
  "unicorn/prefer-blob-reading-methods",
@@ -240,6 +243,8 @@ const styleRules = [
240
243
  "unicorn/no-zero-fractions",
241
244
  "unicorn/number-literal-case",
242
245
  "unicorn/numeric-separators-style",
246
+ "unicorn/prefer-classlist-toggle",
247
+ "unicorn/prefer-class-fields",
243
248
  "unicorn/prefer-global-this",
244
249
  "unicorn/prefer-object-from-entries",
245
250
  "unicorn/prefer-array-index-of",
@@ -262,6 +267,7 @@ const styleRules = [
262
267
  "vitest/prefer-to-be-falsy",
263
268
  "vitest/prefer-to-be-object",
264
269
  "vitest/prefer-to-be-truthy",
270
+ "vue/define-props-destructuring",
265
271
  "vue/define-emits-declaration",
266
272
  "vue/define-props-declaration",
267
273
  "vue/require-typed-ref",
@@ -346,8 +352,10 @@ const suspiciousRules = [
346
352
  "unicorn/no-instanceof-builtins",
347
353
  "unicorn/no-accessor-recursion",
348
354
  "unicorn/prefer-add-event-listener",
355
+ "unicorn/require-module-specifiers",
349
356
  "unicorn/require-post-message-target-origin",
350
357
  "vue/no-required-prop-with-default",
358
+ "vue/require-default-export",
351
359
  "@typescript-eslint/no-useless-constructor",
352
360
  "import-x/no-unassigned-import",
353
361
  "import-x/no-empty-named-blocks",
@@ -362,6 +370,7 @@ const restrictionRules = [
362
370
  "default-case",
363
371
  "no-alert",
364
372
  "no-bitwise",
373
+ "no-param-reassign",
365
374
  "no-restricted-imports",
366
375
  "no-console",
367
376
  "no-div-regex",
@@ -411,6 +420,7 @@ const restrictionRules = [
411
420
  "@typescript-eslint/prefer-literal-enum-member",
412
421
  "@typescript-eslint/promise-function-async",
413
422
  "@typescript-eslint/use-unknown-in-catch-callback-variable",
423
+ "unicorn/no-useless-error-capture-stack-trace",
414
424
  "unicorn/no-abusive-eslint-disable",
415
425
  "unicorn/no-anonymous-default-export",
416
426
  "unicorn/no-array-for-each",
@@ -423,6 +433,7 @@ const restrictionRules = [
423
433
  "unicorn/prefer-node-protocol",
424
434
  "unicorn/prefer-number-properties",
425
435
  "vue/max-props",
436
+ "vue/no-import-compiler-macros",
426
437
  "vue/no-multiple-slot-args",
427
438
  "@typescript-eslint/class-methods-use-this",
428
439
  "@typescript-eslint/no-restricted-imports",
@@ -617,6 +628,8 @@ const correctnessRules = [
617
628
  "unicorn/prefer-string-starts-ends-with",
618
629
  "vitest/no-conditional-tests",
619
630
  "vitest/require-local-test-context-for-concurrent-snapshots",
631
+ "vue/no-export-in-script-setup",
632
+ "vue/prefer-import-from-vue",
620
633
  "vue/valid-define-emits",
621
634
  "vue/valid-define-props",
622
635
  "@typescript-eslint/no-dupe-class-members",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "type": "module",
6
6
  "bin": {
@@ -67,7 +67,7 @@
67
67
  "jiti": "^2.4.2",
68
68
  "lint-staged": "^16.1.2",
69
69
  "next": "^15.5.0",
70
- "oxlint": "^1.19.0",
70
+ "oxlint": "^1.21.0",
71
71
  "oxlint-tsgolint": "^0.2.0",
72
72
  "prettier": "^3.6.1",
73
73
  "typescript": "^5.8.3",
@@ -88,5 +88,5 @@
88
88
  "peerDependencies": {
89
89
  "jiti": "*"
90
90
  },
91
- "packageManager": "pnpm@10.17.1"
91
+ "packageManager": "pnpm@10.18.0"
92
92
  }