@oxlint/migrate 0.16.8 → 0.16.10

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.10";
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[];
@@ -1,15 +1,15 @@
1
1
  const pedanticRules = [
2
2
  "array-callback-return",
3
3
  "eqeqeq",
4
- "max-nested-callbacks",
5
- "max-lines-per-function",
6
4
  "max-classes-per-file",
7
5
  "max-depth",
6
+ "max-lines-per-function",
8
7
  "max-lines",
9
- "no-lonely-if",
10
- "no-object-constructor",
8
+ "max-nested-callbacks",
11
9
  "no-array-constructor",
12
10
  "no-case-declarations",
11
+ "no-lonely-if",
12
+ "no-object-constructor",
13
13
  "no-constructor-return",
14
14
  "no-else-return",
15
15
  "no-fallthrough",
@@ -42,10 +42,12 @@ 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",
48
49
  "unicorn/new-for-builtins",
50
+ "unicorn/no-unnecessary-slice-end",
49
51
  "unicorn/no-hex-escape",
50
52
  "unicorn/no-instanceof-array",
51
53
  "unicorn/no-lonely-if",
@@ -84,6 +86,44 @@ const pedanticRules = [
84
86
  "import-x/max-dependencies",
85
87
  "vitest/no-conditional-in-test"
86
88
  ];
89
+ const suspiciousRules = [
90
+ "block-scoped-var",
91
+ "no-unneeded-ternary",
92
+ "no-extend-native",
93
+ "no-new",
94
+ "no-unexpected-multiline",
95
+ "no-useless-concat",
96
+ "no-useless-constructor",
97
+ "import/no-empty-named-blocks",
98
+ "import/no-absolute-path",
99
+ "import/no-duplicates",
100
+ "import/no-named-as-default",
101
+ "import/no-named-as-default-member",
102
+ "import/no-self-import",
103
+ "jest/no-commented-out-tests",
104
+ "promise/no-promise-in-callback",
105
+ "react/iframe-missing-sandbox",
106
+ "react/jsx-no-comment-textnodes",
107
+ "react/jsx-no-script-url",
108
+ "react/no-namespace",
109
+ "react/react-in-jsx-scope",
110
+ "react/style-prop-object",
111
+ "@typescript-eslint/no-confusing-non-null-assertion",
112
+ "@typescript-eslint/no-extraneous-class",
113
+ "@typescript-eslint/no-unnecessary-type-constraint",
114
+ "unicorn/consistent-function-scoping",
115
+ "unicorn/no-accessor-recursion",
116
+ "unicorn/prefer-add-event-listener",
117
+ "unicorn/require-post-message-target-origin",
118
+ "@typescript-eslint/no-useless-constructor",
119
+ "import-x/no-empty-named-blocks",
120
+ "import-x/no-absolute-path",
121
+ "import-x/no-duplicates",
122
+ "import-x/no-named-as-default",
123
+ "import-x/no-named-as-default-member",
124
+ "import-x/no-self-import",
125
+ "vitest/no-commented-out-tests"
126
+ ];
87
127
  const styleRules = [
88
128
  "curly",
89
129
  "default-case-last",
@@ -95,12 +135,12 @@ const styleRules = [
95
135
  "init-declarations",
96
136
  "max-params",
97
137
  "new-cap",
138
+ "no-duplicate-imports",
98
139
  "no-extra-label",
99
- "no-multi-assign",
100
- "no-nested-ternary",
101
140
  "no-labels",
102
141
  "no-lone-blocks",
103
- "no-duplicate-imports",
142
+ "no-multi-assign",
143
+ "no-nested-ternary",
104
144
  "no-continue",
105
145
  "no-label-var",
106
146
  "no-magic-numbers",
@@ -261,9 +301,9 @@ const styleRules = [
261
301
  ];
262
302
  const restrictionRules = [
263
303
  "default-case",
264
- "no-restricted-imports",
265
304
  "no-alert",
266
305
  "no-bitwise",
306
+ "no-restricted-imports",
267
307
  "no-console",
268
308
  "no-div-regex",
269
309
  "no-empty-function",
@@ -335,6 +375,7 @@ const correctnessRules = [
335
375
  "no-async-promise-executor",
336
376
  "no-caller",
337
377
  "no-class-assign",
378
+ "no-useless-backreference",
338
379
  "no-compare-neg-zero",
339
380
  "no-cond-assign",
340
381
  "no-const-assign",
@@ -452,6 +493,7 @@ const correctnessRules = [
452
493
  "promise/no-callback-in-promise",
453
494
  "promise/no-new-statics",
454
495
  "promise/valid-params",
496
+ "react/forward-ref-uses-ref",
455
497
  "react/jsx-key",
456
498
  "react/jsx-no-duplicate-props",
457
499
  "react/jsx-no-target-blank",
@@ -519,8 +561,8 @@ const nurseryRules = [
519
561
  "import-x/named"
520
562
  ];
521
563
  const perfRules = [
522
- "no-useless-call",
523
564
  "no-await-in-loop",
565
+ "no-useless-call",
524
566
  "react/no-array-index-key",
525
567
  "react-perf/jsx-no-jsx-as-prop",
526
568
  "react-perf/jsx-no-new-array-as-prop",
@@ -528,43 +570,6 @@ const perfRules = [
528
570
  "react-perf/jsx-no-new-object-as-prop",
529
571
  "unicorn/prefer-set-has"
530
572
  ];
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
573
  export {
569
574
  correctnessRules,
570
575
  nurseryRules,
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "0.16.8",
3
+ "version": "0.16.10",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "@oxlint/migrate": "./dist/bin/oxlint-migrate.mjs"
8
8
  },
9
+ "exports": {
10
+ "import": "./dist/src/index.mjs",
11
+ "types": "./dist/src/index.d.ts"
12
+ },
9
13
  "repository": {
10
14
  "type": "git",
11
15
  "url": "https://github.com/oxc-project/oxlint-migrate"
@@ -54,10 +58,10 @@
54
58
  "eslint-plugin-local": "^6.0.0",
55
59
  "eslint-plugin-oxlint": "^0.16.0",
56
60
  "eslint-plugin-regexp": "^2.7.0",
57
- "eslint-plugin-unicorn": "^58.0.0",
61
+ "eslint-plugin-unicorn": "^59.0.0",
58
62
  "husky": "^9.1.7",
59
63
  "lint-staged": "^15.4.3",
60
- "oxlint": "^0.16.8",
64
+ "oxlint": "^0.16.10",
61
65
  "prettier": "^3.5.1",
62
66
  "typescript": "^5.7.3",
63
67
  "typescript-eslint": "^8.24.0",
@@ -69,8 +73,10 @@
69
73
  "*": "prettier --ignore-unknown --write"
70
74
  },
71
75
  "dependencies": {
72
- "commander": "^13.1.0",
73
- "globals": "^16.0.0"
76
+ "commander": "^13.1.0"
77
+ },
78
+ "peerDependencies": {
79
+ "globals": "^14.0.0 || ^15.0.0 || ^16.0.0"
74
80
  },
75
81
  "packageManager": "pnpm@10.7.1"
76
82
  }