@oxlint/migrate 1.35.0 → 1.36.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as rules_exports, n as preFixForJsPlugins, r as nurseryRules, t as src_default } from "../src-
|
|
2
|
+
import { i as rules_exports, n as preFixForJsPlugins, r as nurseryRules, t as src_default } from "../src-CysA9JeL.mjs";
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
import { existsSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -40,7 +40,7 @@ const loadESLintConfig = async (filePath) => {
|
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region package.json
|
|
43
|
-
var version = "1.
|
|
43
|
+
var version = "1.36.0";
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/walker/comments/replaceRuleDirectiveComment.ts
|
package/dist/src/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import globals from "globals";
|
|
|
2
2
|
|
|
3
3
|
//#region rolldown:runtime
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
|
-
var
|
|
5
|
+
var __exportAll = (all, symbols) => {
|
|
6
6
|
let target = {};
|
|
7
7
|
for (var name in all) {
|
|
8
8
|
__defProp(target, name, {
|
|
@@ -168,7 +168,7 @@ const cleanUpSupersetEnvs = (config) => {
|
|
|
168
168
|
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region src/generated/rules.ts
|
|
171
|
-
var rules_exports = /* @__PURE__ */
|
|
171
|
+
var rules_exports = /* @__PURE__ */ __exportAll({
|
|
172
172
|
correctnessRules: () => correctnessRules,
|
|
173
173
|
nurseryRules: () => nurseryRules,
|
|
174
174
|
pedanticRules: () => pedanticRules,
|
|
@@ -395,6 +395,7 @@ const styleRules = [
|
|
|
395
395
|
"jest/prefer-todo",
|
|
396
396
|
"jest/require-hook",
|
|
397
397
|
"jest/require-top-level-describe",
|
|
398
|
+
"node/global-require",
|
|
398
399
|
"node/no-exports-assign",
|
|
399
400
|
"promise/avoid-new",
|
|
400
401
|
"promise/no-return-wrap",
|
|
@@ -408,6 +409,7 @@ const styleRules = [
|
|
|
408
409
|
"react/jsx-boolean-value",
|
|
409
410
|
"react/jsx-curly-brace-presence",
|
|
410
411
|
"react/jsx-handler-names",
|
|
412
|
+
"react/jsx-max-depth",
|
|
411
413
|
"react/jsx-props-no-spreading",
|
|
412
414
|
"react/no-redundant-should-component-update",
|
|
413
415
|
"react/no-set-state",
|
|
@@ -469,6 +471,7 @@ const styleRules = [
|
|
|
469
471
|
"unicorn/switch-case-braces",
|
|
470
472
|
"unicorn/text-encoding-identifier-case",
|
|
471
473
|
"unicorn/throw-new-error",
|
|
474
|
+
"vitest/consistent-test-filename",
|
|
472
475
|
"vitest/no-import-node-test",
|
|
473
476
|
"vitest/prefer-called-times",
|
|
474
477
|
"vitest/prefer-to-be-falsy",
|
|
@@ -746,6 +749,7 @@ const correctnessRules = [
|
|
|
746
749
|
"jsx-a11y/anchor-is-valid",
|
|
747
750
|
"jsx-a11y/aria-activedescendant-has-tabindex",
|
|
748
751
|
"jsx-a11y/aria-props",
|
|
752
|
+
"jsx-a11y/aria-proptypes",
|
|
749
753
|
"jsx-a11y/aria-role",
|
|
750
754
|
"jsx-a11y/aria-unsupported-elements",
|
|
751
755
|
"jsx-a11y/autocomplete-valid",
|
|
@@ -799,6 +803,7 @@ const correctnessRules = [
|
|
|
799
803
|
"react/jsx-no-duplicate-props",
|
|
800
804
|
"react/jsx-no-undef",
|
|
801
805
|
"react/jsx-props-no-spread-multi",
|
|
806
|
+
"react/no-did-mount-set-state",
|
|
802
807
|
"react/no-children-prop",
|
|
803
808
|
"react/no-danger-with-children",
|
|
804
809
|
"react/no-direct-mutation-state",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -8,17 +8,12 @@
|
|
|
8
8
|
"oxlint",
|
|
9
9
|
"rules"
|
|
10
10
|
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Sysix <sysix@sysix-coding.de>",
|
|
11
13
|
"repository": {
|
|
12
14
|
"type": "git",
|
|
13
15
|
"url": "https://github.com/oxc-project/oxlint-migrate"
|
|
14
16
|
},
|
|
15
|
-
"author": "Sysix <sysix@sysix-coding.de>",
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"type": "module",
|
|
18
|
-
"exports": {
|
|
19
|
-
"types": "./dist/src/index.d.mts",
|
|
20
|
-
"import": "./dist/src/index.mjs"
|
|
21
|
-
},
|
|
22
17
|
"bin": {
|
|
23
18
|
"@oxlint/migrate": "./dist/bin/oxlint-migrate.mjs"
|
|
24
19
|
},
|
|
@@ -26,6 +21,11 @@
|
|
|
26
21
|
"README.md",
|
|
27
22
|
"dist/*"
|
|
28
23
|
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
"types": "./dist/src/index.d.mts",
|
|
27
|
+
"import": "./dist/src/index.mjs"
|
|
28
|
+
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"prepare": "husky",
|
|
31
31
|
"generate": "node --import @oxc-node/core/register ./scripts/generate.ts",
|
|
@@ -36,13 +36,10 @@
|
|
|
36
36
|
"build": "tsdown",
|
|
37
37
|
"manual-test": "pnpm build; chmod +x dist/bin/oxlint-migrate.mjs; npx ."
|
|
38
38
|
},
|
|
39
|
-
"lint-staged": {
|
|
40
|
-
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
41
|
-
},
|
|
42
39
|
"dependencies": {
|
|
43
40
|
"commander": "^14.0.0",
|
|
44
41
|
"globals": "^16.3.0",
|
|
45
|
-
"oxc-parser": "^0.
|
|
42
|
+
"oxc-parser": "^0.106.0",
|
|
46
43
|
"tinyglobby": "^0.2.14"
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
|
@@ -78,8 +75,8 @@
|
|
|
78
75
|
"jiti": "^2.4.2",
|
|
79
76
|
"lint-staged": "^16.1.2",
|
|
80
77
|
"next": "^16.0.0",
|
|
81
|
-
"oxfmt": "^0.
|
|
82
|
-
"oxlint": "^1.
|
|
78
|
+
"oxfmt": "^0.21.0",
|
|
79
|
+
"oxlint": "^1.36.0",
|
|
83
80
|
"oxlint-tsgolint": "^0.8.3",
|
|
84
81
|
"tsdown": "^0.18.0",
|
|
85
82
|
"typescript": "^5.8.3",
|
|
@@ -89,5 +86,8 @@
|
|
|
89
86
|
"peerDependencies": {
|
|
90
87
|
"jiti": "*"
|
|
91
88
|
},
|
|
92
|
-
"
|
|
89
|
+
"lint-staged": {
|
|
90
|
+
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
91
|
+
},
|
|
92
|
+
"packageManager": "pnpm@10.26.2"
|
|
93
93
|
}
|