@oxlint/migrate 0.16.8 → 0.16.9

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 = "0.16.8";
1
+ const version = "0.16.9";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -1,7 +1,7 @@
1
1
  export declare const pedanticRules: string[];
2
+ export declare const suspiciousRules: string[];
2
3
  export declare const styleRules: string[];
3
4
  export declare const restrictionRules: string[];
4
5
  export declare const correctnessRules: string[];
5
6
  export declare const nurseryRules: string[];
6
7
  export declare const perfRules: string[];
7
- export declare const suspiciousRules: string[];
@@ -42,6 +42,7 @@ const pedanticRules = [
42
42
  "@typescript-eslint/no-unsafe-function-type",
43
43
  "@typescript-eslint/prefer-enum-initializers",
44
44
  "@typescript-eslint/prefer-ts-expect-error",
45
+ "unicorn/consistent-assert",
45
46
  "unicorn/consistent-empty-array-spread",
46
47
  "unicorn/escape-case",
47
48
  "unicorn/explicit-length-check",
@@ -84,6 +85,44 @@ const pedanticRules = [
84
85
  "import-x/max-dependencies",
85
86
  "vitest/no-conditional-in-test"
86
87
  ];
88
+ const suspiciousRules = [
89
+ "block-scoped-var",
90
+ "no-unneeded-ternary",
91
+ "no-extend-native",
92
+ "no-new",
93
+ "no-unexpected-multiline",
94
+ "no-useless-concat",
95
+ "no-useless-constructor",
96
+ "import/no-empty-named-blocks",
97
+ "import/no-absolute-path",
98
+ "import/no-duplicates",
99
+ "import/no-named-as-default",
100
+ "import/no-named-as-default-member",
101
+ "import/no-self-import",
102
+ "jest/no-commented-out-tests",
103
+ "promise/no-promise-in-callback",
104
+ "react/iframe-missing-sandbox",
105
+ "react/jsx-no-comment-textnodes",
106
+ "react/jsx-no-script-url",
107
+ "react/no-namespace",
108
+ "react/react-in-jsx-scope",
109
+ "react/style-prop-object",
110
+ "@typescript-eslint/no-confusing-non-null-assertion",
111
+ "@typescript-eslint/no-extraneous-class",
112
+ "@typescript-eslint/no-unnecessary-type-constraint",
113
+ "unicorn/consistent-function-scoping",
114
+ "unicorn/no-accessor-recursion",
115
+ "unicorn/prefer-add-event-listener",
116
+ "unicorn/require-post-message-target-origin",
117
+ "@typescript-eslint/no-useless-constructor",
118
+ "import-x/no-empty-named-blocks",
119
+ "import-x/no-absolute-path",
120
+ "import-x/no-duplicates",
121
+ "import-x/no-named-as-default",
122
+ "import-x/no-named-as-default-member",
123
+ "import-x/no-self-import",
124
+ "vitest/no-commented-out-tests"
125
+ ];
87
126
  const styleRules = [
88
127
  "curly",
89
128
  "default-case-last",
@@ -452,6 +491,7 @@ const correctnessRules = [
452
491
  "promise/no-callback-in-promise",
453
492
  "promise/no-new-statics",
454
493
  "promise/valid-params",
494
+ "react/forward-ref-uses-ref",
455
495
  "react/jsx-key",
456
496
  "react/jsx-no-duplicate-props",
457
497
  "react/jsx-no-target-blank",
@@ -528,43 +568,6 @@ const perfRules = [
528
568
  "react-perf/jsx-no-new-object-as-prop",
529
569
  "unicorn/prefer-set-has"
530
570
  ];
531
- const suspiciousRules = [
532
- "no-unneeded-ternary",
533
- "no-extend-native",
534
- "no-new",
535
- "no-unexpected-multiline",
536
- "no-useless-concat",
537
- "no-useless-constructor",
538
- "import/no-empty-named-blocks",
539
- "import/no-absolute-path",
540
- "import/no-duplicates",
541
- "import/no-named-as-default",
542
- "import/no-named-as-default-member",
543
- "import/no-self-import",
544
- "jest/no-commented-out-tests",
545
- "promise/no-promise-in-callback",
546
- "react/iframe-missing-sandbox",
547
- "react/jsx-no-comment-textnodes",
548
- "react/jsx-no-script-url",
549
- "react/no-namespace",
550
- "react/react-in-jsx-scope",
551
- "react/style-prop-object",
552
- "@typescript-eslint/no-confusing-non-null-assertion",
553
- "@typescript-eslint/no-extraneous-class",
554
- "@typescript-eslint/no-unnecessary-type-constraint",
555
- "unicorn/consistent-function-scoping",
556
- "unicorn/no-accessor-recursion",
557
- "unicorn/prefer-add-event-listener",
558
- "unicorn/require-post-message-target-origin",
559
- "@typescript-eslint/no-useless-constructor",
560
- "import-x/no-empty-named-blocks",
561
- "import-x/no-absolute-path",
562
- "import-x/no-duplicates",
563
- "import-x/no-named-as-default",
564
- "import-x/no-named-as-default-member",
565
- "import-x/no-self-import",
566
- "vitest/no-commented-out-tests"
567
- ];
568
571
  export {
569
572
  correctnessRules,
570
573
  nurseryRules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "0.16.8",
3
+ "version": "0.16.9",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "type": "module",
6
6
  "bin": {
@@ -54,10 +54,10 @@
54
54
  "eslint-plugin-local": "^6.0.0",
55
55
  "eslint-plugin-oxlint": "^0.16.0",
56
56
  "eslint-plugin-regexp": "^2.7.0",
57
- "eslint-plugin-unicorn": "^58.0.0",
57
+ "eslint-plugin-unicorn": "^59.0.0",
58
58
  "husky": "^9.1.7",
59
59
  "lint-staged": "^15.4.3",
60
- "oxlint": "^0.16.8",
60
+ "oxlint": "^0.16.9",
61
61
  "prettier": "^3.5.1",
62
62
  "typescript": "^5.7.3",
63
63
  "typescript-eslint": "^8.24.0",