@oxlint/migrate 1.19.0 → 1.20.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.20.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,6 +352,7 @@ 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",
351
358
  "@typescript-eslint/no-useless-constructor",
@@ -362,6 +369,7 @@ const restrictionRules = [
362
369
  "default-case",
363
370
  "no-alert",
364
371
  "no-bitwise",
372
+ "no-param-reassign",
365
373
  "no-restricted-imports",
366
374
  "no-console",
367
375
  "no-div-regex",
@@ -411,6 +419,7 @@ const restrictionRules = [
411
419
  "@typescript-eslint/prefer-literal-enum-member",
412
420
  "@typescript-eslint/promise-function-async",
413
421
  "@typescript-eslint/use-unknown-in-catch-callback-variable",
422
+ "unicorn/no-useless-error-capture-stack-trace",
414
423
  "unicorn/no-abusive-eslint-disable",
415
424
  "unicorn/no-anonymous-default-export",
416
425
  "unicorn/no-array-for-each",
@@ -617,6 +626,8 @@ const correctnessRules = [
617
626
  "unicorn/prefer-string-starts-ends-with",
618
627
  "vitest/no-conditional-tests",
619
628
  "vitest/require-local-test-context-for-concurrent-snapshots",
629
+ "vue/no-export-in-script-setup",
630
+ "vue/prefer-import-from-vue",
620
631
  "vue/valid-define-emits",
621
632
  "vue/valid-define-props",
622
633
  "@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.20.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.20.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
  }