@oxlint/migrate 1.11.1 → 1.12.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.11.1";
1
+ const version = "1.12.0";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -39,9 +39,23 @@ const pedanticRules = [
39
39
  "react-hooks/rules-of-hooks",
40
40
  "@typescript-eslint/ban-ts-comment",
41
41
  "@typescript-eslint/ban-types",
42
+ "@typescript-eslint/no-misused-promises",
43
+ "@typescript-eslint/no-mixed-enums",
44
+ "@typescript-eslint/no-unsafe-argument",
45
+ "@typescript-eslint/no-unsafe-assignment",
46
+ "@typescript-eslint/no-unsafe-call",
42
47
  "@typescript-eslint/no-unsafe-function-type",
48
+ "@typescript-eslint/no-unsafe-member-access",
49
+ "@typescript-eslint/no-unsafe-return",
50
+ "@typescript-eslint/only-throw-error",
43
51
  "@typescript-eslint/prefer-enum-initializers",
52
+ "@typescript-eslint/prefer-promise-reject-errors",
44
53
  "@typescript-eslint/prefer-ts-expect-error",
54
+ "@typescript-eslint/related-getter-setter-pairs",
55
+ "@typescript-eslint/require-await",
56
+ "@typescript-eslint/restrict-plus-operands",
57
+ "@typescript-eslint/return-await",
58
+ "@typescript-eslint/switch-exhaustiveness-check",
45
59
  "unicorn/consistent-assert",
46
60
  "unicorn/consistent-empty-array-spread",
47
61
  "unicorn/escape-case",
@@ -116,6 +130,7 @@ const styleRules = [
116
130
  "no-template-curly-in-string",
117
131
  "no-ternary",
118
132
  "operator-assignment",
133
+ "prefer-template",
119
134
  "prefer-destructuring",
120
135
  "prefer-promise-reject-errors",
121
136
  "prefer-exponentiation-operator",
@@ -183,6 +198,7 @@ const styleRules = [
183
198
  "promise/prefer-catch",
184
199
  "promise/prefer-await-to-callbacks",
185
200
  "promise/prefer-await-to-then",
201
+ "react/jsx-fragments",
186
202
  "react/jsx-boolean-value",
187
203
  "react/jsx-curly-brace-presence",
188
204
  "react/no-set-state",
@@ -200,6 +216,8 @@ const styleRules = [
200
216
  "@typescript-eslint/prefer-for-of",
201
217
  "@typescript-eslint/prefer-function-type",
202
218
  "@typescript-eslint/prefer-namespace-keyword",
219
+ "@typescript-eslint/prefer-reduce-type-parameter",
220
+ "@typescript-eslint/prefer-return-this-type",
203
221
  "unicorn/catch-error-name",
204
222
  "unicorn/consistent-date-clone",
205
223
  "unicorn/consistent-existence-index-check",
@@ -299,11 +317,15 @@ const suspiciousRules = [
299
317
  "react/no-namespace",
300
318
  "react/react-in-jsx-scope",
301
319
  "react/style-prop-object",
302
- "@typescript-eslint/no-misused-promises",
303
- "@typescript-eslint/no-floating-promises",
304
320
  "@typescript-eslint/no-confusing-non-null-assertion",
305
321
  "@typescript-eslint/no-extraneous-class",
322
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare",
323
+ "@typescript-eslint/no-unnecessary-template-expression",
324
+ "@typescript-eslint/no-unnecessary-type-arguments",
325
+ "@typescript-eslint/no-unnecessary-type-assertion",
306
326
  "@typescript-eslint/no-unnecessary-type-constraint",
327
+ "@typescript-eslint/no-unsafe-enum-comparison",
328
+ "@typescript-eslint/no-unsafe-type-assertion",
307
329
  "unicorn/consistent-function-scoping",
308
330
  "unicorn/no-instanceof-builtins",
309
331
  "unicorn/no-accessor-recursion",
@@ -368,7 +390,10 @@ const restrictionRules = [
368
390
  "@typescript-eslint/no-non-null-assertion",
369
391
  "@typescript-eslint/no-require-imports",
370
392
  "@typescript-eslint/no-var-requires",
393
+ "@typescript-eslint/non-nullable-type-assertion-style",
371
394
  "@typescript-eslint/prefer-literal-enum-member",
395
+ "@typescript-eslint/promise-function-async",
396
+ "@typescript-eslint/use-unknown-in-catch-callback-variable",
372
397
  "unicorn/no-abusive-eslint-disable",
373
398
  "unicorn/no-anonymous-default-export",
374
399
  "unicorn/no-array-for-each",
@@ -532,17 +557,32 @@ const correctnessRules = [
532
557
  "react/no-render-return-value",
533
558
  "react/no-string-refs",
534
559
  "react/void-dom-elements-no-children",
560
+ "@typescript-eslint/await-thenable",
561
+ "@typescript-eslint/no-floating-promises",
562
+ "@typescript-eslint/no-array-delete",
563
+ "@typescript-eslint/no-base-to-string",
564
+ "@typescript-eslint/no-confusing-void-expression",
535
565
  "@typescript-eslint/no-duplicate-enum-values",
566
+ "@typescript-eslint/no-duplicate-type-constituents",
536
567
  "@typescript-eslint/no-extra-non-null-assertion",
568
+ "@typescript-eslint/no-for-in-array",
569
+ "@typescript-eslint/no-implied-eval",
570
+ "@typescript-eslint/no-meaningless-void-operator",
537
571
  "@typescript-eslint/no-misused-new",
572
+ "@typescript-eslint/no-misused-spread",
538
573
  "@typescript-eslint/no-non-null-asserted-optional-chain",
574
+ "@typescript-eslint/no-redundant-type-constituents",
539
575
  "@typescript-eslint/no-this-alias",
540
576
  "@typescript-eslint/no-unnecessary-parameter-property-assignment",
541
577
  "@typescript-eslint/no-unsafe-declaration-merging",
578
+ "@typescript-eslint/no-unsafe-unary-minus",
542
579
  "@typescript-eslint/no-useless-empty-export",
543
580
  "@typescript-eslint/no-wrapper-object-types",
544
581
  "@typescript-eslint/prefer-as-const",
582
+ "@typescript-eslint/require-array-sort-compare",
583
+ "@typescript-eslint/restrict-template-expressions",
545
584
  "@typescript-eslint/triple-slash-reference",
585
+ "@typescript-eslint/unbound-method",
546
586
  "unicorn/no-invalid-fetch-options",
547
587
  "unicorn/no-await-in-promise-methods",
548
588
  "unicorn/no-empty-file",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "@eslint/eslintrc": "^3.3.1",
42
42
  "@eslint/js": "^9.29.0",
43
43
  "@logux/eslint-config": "^56.0.0",
44
- "@oxc-node/core": "^0.0.30",
44
+ "@oxc-node/core": "^0.0.32",
45
45
  "@stylistic/eslint-plugin": "^5.0.0",
46
46
  "@stylistic/eslint-plugin-ts": "^4.4.1",
47
47
  "@types/eslint-config-prettier": "^6.11.3",
@@ -65,7 +65,7 @@
65
65
  "husky": "^9.1.7",
66
66
  "jiti": "^2.4.2",
67
67
  "lint-staged": "^16.1.2",
68
- "oxlint": "^1.11.1",
68
+ "oxlint": "^1.12.0",
69
69
  "prettier": "^3.6.1",
70
70
  "typescript": "^5.8.3",
71
71
  "typescript-eslint": "^8.35.0",
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "dependencies": {
80
80
  "commander": "^14.0.0",
81
- "oxc-parser": "^0.80.0",
81
+ "oxc-parser": "^0.81.0",
82
82
  "tinyglobby": "^0.2.14"
83
83
  },
84
84
  "peerDependencies": {