@oxlint/migrate 0.16.11 → 0.17.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.
package/dist/package.json.mjs
CHANGED
package/dist/src/env_globals.mjs
CHANGED
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
37
|
-
"
|
|
34
|
+
"protractor",
|
|
35
|
+
"prototypejs",
|
|
36
|
+
"phantomjs",
|
|
37
|
+
"shelljs",
|
|
38
38
|
"webextensions",
|
|
39
|
-
"
|
|
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",
|
|
@@ -113,6 +114,7 @@ const suspiciousRules = [
|
|
|
113
114
|
"@typescript-eslint/no-extraneous-class",
|
|
114
115
|
"@typescript-eslint/no-unnecessary-type-constraint",
|
|
115
116
|
"unicorn/consistent-function-scoping",
|
|
117
|
+
"unicorn/no-instanceof-builtins",
|
|
116
118
|
"unicorn/no-accessor-recursion",
|
|
117
119
|
"unicorn/prefer-add-event-listener",
|
|
118
120
|
"unicorn/require-post-message-target-origin",
|
|
@@ -240,6 +242,7 @@ const styleRules = [
|
|
|
240
242
|
"unicorn/empty-brace-spaces",
|
|
241
243
|
"unicorn/error-message",
|
|
242
244
|
"unicorn/filename-case",
|
|
245
|
+
"unicorn/no-array-method-this-argument",
|
|
243
246
|
"unicorn/no-await-expression-member",
|
|
244
247
|
"unicorn/no-console-spaces",
|
|
245
248
|
"unicorn/no-null",
|
|
@@ -247,6 +250,9 @@ const styleRules = [
|
|
|
247
250
|
"unicorn/no-zero-fractions",
|
|
248
251
|
"unicorn/number-literal-case",
|
|
249
252
|
"unicorn/numeric-separators-style",
|
|
253
|
+
"unicorn/prefer-global-this",
|
|
254
|
+
"unicorn/prefer-object-from-entries",
|
|
255
|
+
"unicorn/prefer-array-index-of",
|
|
250
256
|
"unicorn/prefer-spread",
|
|
251
257
|
"unicorn/prefer-array-flat-map",
|
|
252
258
|
"unicorn/prefer-dom-node-text-content",
|
|
@@ -499,6 +505,7 @@ const correctnessRules = [
|
|
|
499
505
|
"promise/no-callback-in-promise",
|
|
500
506
|
"promise/no-new-statics",
|
|
501
507
|
"promise/valid-params",
|
|
508
|
+
"react-hooks/exhaustive-deps",
|
|
502
509
|
"react/forward-ref-uses-ref",
|
|
503
510
|
"react/jsx-key",
|
|
504
511
|
"react/jsx-no-duplicate-props",
|
|
@@ -560,7 +567,6 @@ const nurseryRules = [
|
|
|
560
567
|
"import/export",
|
|
561
568
|
"import/named",
|
|
562
569
|
"promise/no-return-in-finally",
|
|
563
|
-
"react-hooks/exhaustive-deps",
|
|
564
570
|
"react/require-render-return",
|
|
565
571
|
"import-x/export",
|
|
566
572
|
"import-x/named"
|
|
@@ -573,6 +579,7 @@ const perfRules = [
|
|
|
573
579
|
"react-perf/jsx-no-new-array-as-prop",
|
|
574
580
|
"react-perf/jsx-no-new-function-as-prop",
|
|
575
581
|
"react-perf/jsx-no-new-object-as-prop",
|
|
582
|
+
"unicorn/prefer-array-find",
|
|
576
583
|
"unicorn/prefer-set-has"
|
|
577
584
|
];
|
|
578
585
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"eslint-plugin-unicorn": "^59.0.0",
|
|
62
62
|
"husky": "^9.1.7",
|
|
63
63
|
"lint-staged": "^16.0.0",
|
|
64
|
-
"oxlint": "^0.
|
|
64
|
+
"oxlint": "^0.17.0",
|
|
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": "^
|
|
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.
|
|
81
|
+
"packageManager": "pnpm@10.11.0"
|
|
82
82
|
}
|