@oxlint/migrate 0.16.10 → 0.16.12

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.10";
1
+ const version = "0.16.12";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -18,25 +18,26 @@ const OTHER_SUPPORTED_ENVS = [
18
18
  "shared-node-browser",
19
19
  "worker",
20
20
  "serviceworker",
21
- "commonjs",
22
21
  "amd",
23
- "mocha",
22
+ "applescript",
23
+ "atomtest",
24
+ "commonjs",
25
+ "embertest",
26
+ "greasemonkey",
24
27
  "jasmine",
25
28
  "jest",
26
- "phantomjs",
27
29
  "jquery",
28
- "qunit",
29
- "prototypejs",
30
- "shelljs",
31
30
  "meteor",
31
+ "mocha",
32
32
  "mongo",
33
- "protractor",
34
- "applescript",
35
33
  "nashorn",
36
- "atomtest",
37
- "embertest",
34
+ "protractor",
35
+ "prototypejs",
36
+ "phantomjs",
37
+ "shelljs",
38
38
  "webextensions",
39
- "greasemonkey"
39
+ "qunit",
40
+ "vitest"
40
41
  ];
41
42
  const SUPPORTED_ESLINT_PARSERS = ["typescript-eslint/parser"];
42
43
  const normalizeGlobValue = (value) => {
@@ -47,6 +47,7 @@ const pedanticRules = [
47
47
  "unicorn/escape-case",
48
48
  "unicorn/explicit-length-check",
49
49
  "unicorn/new-for-builtins",
50
+ "unicorn/no-unnecessary-array-flat-depth",
50
51
  "unicorn/no-unnecessary-slice-end",
51
52
  "unicorn/no-hex-escape",
52
53
  "unicorn/no-instanceof-array",
@@ -94,6 +95,7 @@ const suspiciousRules = [
94
95
  "no-unexpected-multiline",
95
96
  "no-useless-concat",
96
97
  "no-useless-constructor",
98
+ "import/no-unassigned-import",
97
99
  "import/no-empty-named-blocks",
98
100
  "import/no-absolute-path",
99
101
  "import/no-duplicates",
@@ -112,10 +114,12 @@ const suspiciousRules = [
112
114
  "@typescript-eslint/no-extraneous-class",
113
115
  "@typescript-eslint/no-unnecessary-type-constraint",
114
116
  "unicorn/consistent-function-scoping",
117
+ "unicorn/no-instanceof-builtins",
115
118
  "unicorn/no-accessor-recursion",
116
119
  "unicorn/prefer-add-event-listener",
117
120
  "unicorn/require-post-message-target-origin",
118
121
  "@typescript-eslint/no-useless-constructor",
122
+ "import-x/no-unassigned-import",
119
123
  "import-x/no-empty-named-blocks",
120
124
  "import-x/no-absolute-path",
121
125
  "import-x/no-duplicates",
@@ -162,6 +166,7 @@ const styleRules = [
162
166
  "sort-keys",
163
167
  "vars-on-top",
164
168
  "yoda",
169
+ "import/consistent-type-specifier-style",
165
170
  "import/exports-last",
166
171
  "import/first",
167
172
  "import/group-exports",
@@ -225,6 +230,7 @@ const styleRules = [
225
230
  "@typescript-eslint/consistent-generic-constructors",
226
231
  "@typescript-eslint/consistent-indexed-object-style",
227
232
  "@typescript-eslint/consistent-type-definitions",
233
+ "@typescript-eslint/consistent-type-imports",
228
234
  "@typescript-eslint/no-inferrable-types",
229
235
  "@typescript-eslint/no-empty-interface",
230
236
  "@typescript-eslint/prefer-for-of",
@@ -236,6 +242,8 @@ const styleRules = [
236
242
  "unicorn/empty-brace-spaces",
237
243
  "unicorn/error-message",
238
244
  "unicorn/filename-case",
245
+ "unicorn/no-array-method-this-argument",
246
+ "unicorn/no-for-loop",
239
247
  "unicorn/no-await-expression-member",
240
248
  "unicorn/no-console-spaces",
241
249
  "unicorn/no-null",
@@ -243,6 +251,9 @@ const styleRules = [
243
251
  "unicorn/no-zero-fractions",
244
252
  "unicorn/number-literal-case",
245
253
  "unicorn/numeric-separators-style",
254
+ "unicorn/prefer-global-this",
255
+ "unicorn/prefer-object-from-entries",
256
+ "unicorn/prefer-array-index-of",
246
257
  "unicorn/prefer-spread",
247
258
  "unicorn/prefer-array-flat-map",
248
259
  "unicorn/prefer-dom-node-text-content",
@@ -267,6 +278,7 @@ const styleRules = [
267
278
  "@typescript-eslint/init-declarations",
268
279
  "@typescript-eslint/max-params",
269
280
  "@typescript-eslint/no-magic-numbers",
281
+ "import-x/consistent-type-specifier-style",
270
282
  "import-x/exports-last",
271
283
  "import-x/first",
272
284
  "import-x/group-exports",
@@ -333,6 +345,7 @@ const restrictionRules = [
333
345
  "promise/catch-or-return",
334
346
  "promise/spec-only",
335
347
  "react/button-has-type",
348
+ "react/forbid-elements",
336
349
  "react/jsx-filename-extension",
337
350
  "react/no-danger",
338
351
  "react/no-unknown-property",
@@ -556,7 +569,6 @@ const nurseryRules = [
556
569
  "promise/no-return-in-finally",
557
570
  "react-hooks/exhaustive-deps",
558
571
  "react/require-render-return",
559
- "@typescript-eslint/consistent-type-imports",
560
572
  "import-x/export",
561
573
  "import-x/named"
562
574
  ];
@@ -568,6 +580,7 @@ const perfRules = [
568
580
  "react-perf/jsx-no-new-array-as-prop",
569
581
  "react-perf/jsx-no-new-function-as-prop",
570
582
  "react-perf/jsx-no-new-object-as-prop",
583
+ "unicorn/prefer-array-find",
571
584
  "unicorn/prefer-set-has"
572
585
  ];
573
586
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "0.16.10",
3
+ "version": "0.16.12",
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.0",
42
42
  "@eslint/js": "^9.20.0",
43
43
  "@logux/eslint-config": "^55.0.0",
44
- "@oxc-node/core": "^0.0.22",
44
+ "@oxc-node/core": "^0.0.27",
45
45
  "@stylistic/eslint-plugin": "^4.0.1",
46
46
  "@stylistic/eslint-plugin-ts": "^4.0.0",
47
47
  "@types/eslint-config-prettier": "^6.11.3",
@@ -60,8 +60,8 @@
60
60
  "eslint-plugin-regexp": "^2.7.0",
61
61
  "eslint-plugin-unicorn": "^59.0.0",
62
62
  "husky": "^9.1.7",
63
- "lint-staged": "^15.4.3",
64
- "oxlint": "^0.16.10",
63
+ "lint-staged": "^16.0.0",
64
+ "oxlint": "^0.16.12",
65
65
  "prettier": "^3.5.1",
66
66
  "typescript": "^5.7.3",
67
67
  "typescript-eslint": "^8.24.0",
@@ -73,10 +73,10 @@
73
73
  "*": "prettier --ignore-unknown --write"
74
74
  },
75
75
  "dependencies": {
76
- "commander": "^13.1.0"
76
+ "commander": "^14.0.0"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "globals": "^14.0.0 || ^15.0.0 || ^16.0.0"
80
80
  },
81
- "packageManager": "pnpm@10.7.1"
81
+ "packageManager": "pnpm@10.11.0"
82
82
  }