@oxlint/migrate 0.16.11 → 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.
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,8 @@ 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",
|
|
246
|
+
"unicorn/no-for-loop",
|
|
243
247
|
"unicorn/no-await-expression-member",
|
|
244
248
|
"unicorn/no-console-spaces",
|
|
245
249
|
"unicorn/no-null",
|
|
@@ -247,6 +251,9 @@ const styleRules = [
|
|
|
247
251
|
"unicorn/no-zero-fractions",
|
|
248
252
|
"unicorn/number-literal-case",
|
|
249
253
|
"unicorn/numeric-separators-style",
|
|
254
|
+
"unicorn/prefer-global-this",
|
|
255
|
+
"unicorn/prefer-object-from-entries",
|
|
256
|
+
"unicorn/prefer-array-index-of",
|
|
250
257
|
"unicorn/prefer-spread",
|
|
251
258
|
"unicorn/prefer-array-flat-map",
|
|
252
259
|
"unicorn/prefer-dom-node-text-content",
|
|
@@ -573,6 +580,7 @@ const perfRules = [
|
|
|
573
580
|
"react-perf/jsx-no-new-array-as-prop",
|
|
574
581
|
"react-perf/jsx-no-new-function-as-prop",
|
|
575
582
|
"react-perf/jsx-no-new-object-as-prop",
|
|
583
|
+
"unicorn/prefer-array-find",
|
|
576
584
|
"unicorn/prefer-set-has"
|
|
577
585
|
];
|
|
578
586
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "0.16.
|
|
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": {
|
|
@@ -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.16.
|
|
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": "^
|
|
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
|
}
|