@oxlint/migrate 1.18.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.18.0";
1
+ const version = "1.20.0";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -62,6 +62,8 @@ 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",
66
+ "unicorn/no-array-callback-reference",
65
67
  "unicorn/no-unnecessary-array-flat-depth",
66
68
  "unicorn/no-unnecessary-slice-end",
67
69
  "unicorn/no-hex-escape",
@@ -77,6 +79,8 @@ const pedanticRules = [
77
79
  "unicorn/no-useless-promise-resolve-reject",
78
80
  "unicorn/no-useless-switch-case",
79
81
  "unicorn/no-useless-undefined",
82
+ "unicorn/prefer-top-level-await",
83
+ "unicorn/prefer-at",
80
84
  "unicorn/prefer-array-flat",
81
85
  "unicorn/prefer-array-some",
82
86
  "unicorn/prefer-blob-reading-methods",
@@ -149,6 +153,7 @@ const styleRules = [
149
153
  "import/exports-last",
150
154
  "import/first",
151
155
  "import/group-exports",
156
+ "import/no-named-export",
152
157
  "import/no-anonymous-default-export",
153
158
  "import/no-mutable-exports",
154
159
  "import/no-named-default",
@@ -201,6 +206,7 @@ const styleRules = [
201
206
  "promise/prefer-catch",
202
207
  "promise/prefer-await-to-callbacks",
203
208
  "promise/prefer-await-to-then",
209
+ "react/jsx-pascal-case",
204
210
  "react/jsx-fragments",
205
211
  "react/jsx-boolean-value",
206
212
  "react/jsx-curly-brace-presence",
@@ -237,6 +243,8 @@ const styleRules = [
237
243
  "unicorn/no-zero-fractions",
238
244
  "unicorn/number-literal-case",
239
245
  "unicorn/numeric-separators-style",
246
+ "unicorn/prefer-classlist-toggle",
247
+ "unicorn/prefer-class-fields",
240
248
  "unicorn/prefer-global-this",
241
249
  "unicorn/prefer-object-from-entries",
242
250
  "unicorn/prefer-array-index-of",
@@ -259,6 +267,7 @@ const styleRules = [
259
267
  "vitest/prefer-to-be-falsy",
260
268
  "vitest/prefer-to-be-object",
261
269
  "vitest/prefer-to-be-truthy",
270
+ "vue/define-props-destructuring",
262
271
  "vue/define-emits-declaration",
263
272
  "vue/define-props-declaration",
264
273
  "vue/require-typed-ref",
@@ -270,6 +279,7 @@ const styleRules = [
270
279
  "import-x/exports-last",
271
280
  "import-x/first",
272
281
  "import-x/group-exports",
282
+ "import-x/no-named-export",
273
283
  "import-x/no-anonymous-default-export",
274
284
  "import-x/no-mutable-exports",
275
285
  "import-x/no-named-default",
@@ -320,6 +330,7 @@ const suspiciousRules = [
320
330
  "jest/no-commented-out-tests",
321
331
  "promise/always-return",
322
332
  "promise/no-promise-in-callback",
333
+ "promise/no-multiple-resolved",
323
334
  "react/iframe-missing-sandbox",
324
335
  "react/jsx-no-comment-textnodes",
325
336
  "react/jsx-no-script-url",
@@ -336,10 +347,12 @@ const suspiciousRules = [
336
347
  "@typescript-eslint/no-unsafe-enum-comparison",
337
348
  "@typescript-eslint/no-unsafe-type-assertion",
338
349
  "unicorn/consistent-function-scoping",
350
+ "unicorn/no-array-sort",
339
351
  "unicorn/no-array-reverse",
340
352
  "unicorn/no-instanceof-builtins",
341
353
  "unicorn/no-accessor-recursion",
342
354
  "unicorn/prefer-add-event-listener",
355
+ "unicorn/require-module-specifiers",
343
356
  "unicorn/require-post-message-target-origin",
344
357
  "vue/no-required-prop-with-default",
345
358
  "@typescript-eslint/no-useless-constructor",
@@ -356,6 +369,7 @@ const restrictionRules = [
356
369
  "default-case",
357
370
  "no-alert",
358
371
  "no-bitwise",
372
+ "no-param-reassign",
359
373
  "no-restricted-imports",
360
374
  "no-console",
361
375
  "no-div-regex",
@@ -368,7 +382,6 @@ const restrictionRules = [
368
382
  "no-regex-spaces",
369
383
  "no-restricted-globals",
370
384
  "no-undefined",
371
- "no-unused-expressions",
372
385
  "no-var",
373
386
  "no-void",
374
387
  "unicode-bom",
@@ -406,6 +419,7 @@ const restrictionRules = [
406
419
  "@typescript-eslint/prefer-literal-enum-member",
407
420
  "@typescript-eslint/promise-function-async",
408
421
  "@typescript-eslint/use-unknown-in-catch-callback-variable",
422
+ "unicorn/no-useless-error-capture-stack-trace",
409
423
  "unicorn/no-abusive-eslint-disable",
410
424
  "unicorn/no-anonymous-default-export",
411
425
  "unicorn/no-array-for-each",
@@ -417,11 +431,11 @@ const restrictionRules = [
417
431
  "unicorn/prefer-modern-math-apis",
418
432
  "unicorn/prefer-node-protocol",
419
433
  "unicorn/prefer-number-properties",
434
+ "vue/max-props",
420
435
  "vue/no-multiple-slot-args",
421
436
  "@typescript-eslint/class-methods-use-this",
422
437
  "@typescript-eslint/no-restricted-imports",
423
438
  "@typescript-eslint/no-empty-function",
424
- "@typescript-eslint/no-unused-expressions",
425
439
  "import-x/extensions",
426
440
  "import-x/no-amd",
427
441
  "import-x/no-commonjs",
@@ -473,6 +487,7 @@ const correctnessRules = [
473
487
  "no-unsafe-finally",
474
488
  "no-unsafe-negation",
475
489
  "no-unsafe-optional-chaining",
490
+ "no-unused-expressions",
476
491
  "no-unused-labels",
477
492
  "no-unused-private-class-members",
478
493
  "no-unused-vars",
@@ -611,10 +626,13 @@ const correctnessRules = [
611
626
  "unicorn/prefer-string-starts-ends-with",
612
627
  "vitest/no-conditional-tests",
613
628
  "vitest/require-local-test-context-for-concurrent-snapshots",
629
+ "vue/no-export-in-script-setup",
630
+ "vue/prefer-import-from-vue",
614
631
  "vue/valid-define-emits",
615
632
  "vue/valid-define-props",
616
633
  "@typescript-eslint/no-dupe-class-members",
617
634
  "@typescript-eslint/no-loss-of-precision",
635
+ "@typescript-eslint/no-unused-expressions",
618
636
  "@typescript-eslint/no-unused-vars",
619
637
  "import-x/default",
620
638
  "import-x/namespace",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.18.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.18.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",
@@ -82,11 +82,11 @@
82
82
  "dependencies": {
83
83
  "commander": "^14.0.0",
84
84
  "globals": "^16.3.0",
85
- "oxc-parser": "^0.90.0",
85
+ "oxc-parser": "^0.93.0",
86
86
  "tinyglobby": "^0.2.14"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "jiti": "*"
90
90
  },
91
- "packageManager": "pnpm@10.17.0"
91
+ "packageManager": "pnpm@10.18.0"
92
92
  }