@oxlint/migrate 1.35.0 → 1.37.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-C3Bx5MGa.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.37.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,8 @@ 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",
|
|
475
|
+
"vitest/consistent-vitest-vi",
|
|
472
476
|
"vitest/no-import-node-test",
|
|
473
477
|
"vitest/prefer-called-times",
|
|
474
478
|
"vitest/prefer-to-be-falsy",
|
|
@@ -581,6 +585,7 @@ const suspiciousRules = [
|
|
|
581
585
|
];
|
|
582
586
|
const restrictionRules = [
|
|
583
587
|
"class-methods-use-this",
|
|
588
|
+
"complexity",
|
|
584
589
|
"default-case",
|
|
585
590
|
"no-alert",
|
|
586
591
|
"no-bitwise",
|
|
@@ -746,6 +751,7 @@ const correctnessRules = [
|
|
|
746
751
|
"jsx-a11y/anchor-is-valid",
|
|
747
752
|
"jsx-a11y/aria-activedescendant-has-tabindex",
|
|
748
753
|
"jsx-a11y/aria-props",
|
|
754
|
+
"jsx-a11y/aria-proptypes",
|
|
749
755
|
"jsx-a11y/aria-role",
|
|
750
756
|
"jsx-a11y/aria-unsupported-elements",
|
|
751
757
|
"jsx-a11y/autocomplete-valid",
|
|
@@ -759,6 +765,7 @@ const correctnessRules = [
|
|
|
759
765
|
"jsx-a11y/media-has-caption",
|
|
760
766
|
"jsx-a11y/mouse-events-have-key-events",
|
|
761
767
|
"jsx-a11y/no-noninteractive-tabindex",
|
|
768
|
+
"jsx-a11y/no-static-element-interactions",
|
|
762
769
|
"jsx-a11y/no-access-key",
|
|
763
770
|
"jsx-a11y/no-aria-hidden-on-focusable",
|
|
764
771
|
"jsx-a11y/no-autofocus",
|
|
@@ -799,6 +806,7 @@ const correctnessRules = [
|
|
|
799
806
|
"react/jsx-no-duplicate-props",
|
|
800
807
|
"react/jsx-no-undef",
|
|
801
808
|
"react/jsx-props-no-spread-multi",
|
|
809
|
+
"react/no-did-mount-set-state",
|
|
802
810
|
"react/no-children-prop",
|
|
803
811
|
"react/no-danger-with-children",
|
|
804
812
|
"react/no-direct-mutation-state",
|
|
@@ -806,7 +814,9 @@ const correctnessRules = [
|
|
|
806
814
|
"react/no-is-mounted",
|
|
807
815
|
"react/no-render-return-value",
|
|
808
816
|
"react/no-string-refs",
|
|
817
|
+
"react/no-this-in-sfc",
|
|
809
818
|
"react/no-unsafe",
|
|
819
|
+
"react/no-will-update-set-state",
|
|
810
820
|
"react/void-dom-elements-no-children",
|
|
811
821
|
"@typescript-eslint/await-thenable",
|
|
812
822
|
"@typescript-eslint/no-floating-promises",
|
|
@@ -848,8 +858,10 @@ const correctnessRules = [
|
|
|
848
858
|
"unicorn/prefer-string-starts-ends-with",
|
|
849
859
|
"vitest/no-conditional-tests",
|
|
850
860
|
"vitest/require-local-test-context-for-concurrent-snapshots",
|
|
861
|
+
"vitest/warn-todo",
|
|
851
862
|
"vue/no-deprecated-destroyed-lifecycle",
|
|
852
863
|
"vue/no-export-in-script-setup",
|
|
864
|
+
"vue/no-this-in-before-route-enter",
|
|
853
865
|
"vue/prefer-import-from-vue",
|
|
854
866
|
"vue/valid-define-emits",
|
|
855
867
|
"vue/valid-define-props",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.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,23 +21,24 @@
|
|
|
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",
|
|
32
32
|
"format": "oxfmt",
|
|
33
|
-
"
|
|
34
|
-
"lint": "oxlint --type-aware",
|
|
33
|
+
"lint": "oxlint --type-aware --type-check",
|
|
35
34
|
"test": "vitest",
|
|
36
35
|
"build": "tsdown",
|
|
37
36
|
"manual-test": "pnpm build; chmod +x dist/bin/oxlint-migrate.mjs; npx ."
|
|
38
37
|
},
|
|
39
|
-
"lint-staged": {
|
|
40
|
-
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
41
|
-
},
|
|
42
38
|
"dependencies": {
|
|
43
39
|
"commander": "^14.0.0",
|
|
44
40
|
"globals": "^16.3.0",
|
|
45
|
-
"oxc-parser": "^0.
|
|
41
|
+
"oxc-parser": "^0.106.0",
|
|
46
42
|
"tinyglobby": "^0.2.14"
|
|
47
43
|
},
|
|
48
44
|
"devDependencies": {
|
|
@@ -78,16 +74,18 @@
|
|
|
78
74
|
"jiti": "^2.4.2",
|
|
79
75
|
"lint-staged": "^16.1.2",
|
|
80
76
|
"next": "^16.0.0",
|
|
81
|
-
"oxfmt": "^0.
|
|
82
|
-
"oxlint": "^1.
|
|
77
|
+
"oxfmt": "^0.21.0",
|
|
78
|
+
"oxlint": "^1.37.0",
|
|
83
79
|
"oxlint-tsgolint": "^0.8.3",
|
|
84
80
|
"tsdown": "^0.18.0",
|
|
85
|
-
"typescript": "^5.8.3",
|
|
86
81
|
"typescript-eslint": "^8.35.0",
|
|
87
82
|
"vitest": "^4.0.0"
|
|
88
83
|
},
|
|
89
84
|
"peerDependencies": {
|
|
90
85
|
"jiti": "*"
|
|
91
86
|
},
|
|
92
|
-
"
|
|
87
|
+
"lint-staged": {
|
|
88
|
+
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
89
|
+
},
|
|
90
|
+
"packageManager": "pnpm@10.27.0"
|
|
93
91
|
}
|