@oxlint/migrate 1.36.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
|
@@ -472,6 +472,7 @@ const styleRules = [
|
|
|
472
472
|
"unicorn/text-encoding-identifier-case",
|
|
473
473
|
"unicorn/throw-new-error",
|
|
474
474
|
"vitest/consistent-test-filename",
|
|
475
|
+
"vitest/consistent-vitest-vi",
|
|
475
476
|
"vitest/no-import-node-test",
|
|
476
477
|
"vitest/prefer-called-times",
|
|
477
478
|
"vitest/prefer-to-be-falsy",
|
|
@@ -584,6 +585,7 @@ const suspiciousRules = [
|
|
|
584
585
|
];
|
|
585
586
|
const restrictionRules = [
|
|
586
587
|
"class-methods-use-this",
|
|
588
|
+
"complexity",
|
|
587
589
|
"default-case",
|
|
588
590
|
"no-alert",
|
|
589
591
|
"no-bitwise",
|
|
@@ -763,6 +765,7 @@ const correctnessRules = [
|
|
|
763
765
|
"jsx-a11y/media-has-caption",
|
|
764
766
|
"jsx-a11y/mouse-events-have-key-events",
|
|
765
767
|
"jsx-a11y/no-noninteractive-tabindex",
|
|
768
|
+
"jsx-a11y/no-static-element-interactions",
|
|
766
769
|
"jsx-a11y/no-access-key",
|
|
767
770
|
"jsx-a11y/no-aria-hidden-on-focusable",
|
|
768
771
|
"jsx-a11y/no-autofocus",
|
|
@@ -811,7 +814,9 @@ const correctnessRules = [
|
|
|
811
814
|
"react/no-is-mounted",
|
|
812
815
|
"react/no-render-return-value",
|
|
813
816
|
"react/no-string-refs",
|
|
817
|
+
"react/no-this-in-sfc",
|
|
814
818
|
"react/no-unsafe",
|
|
819
|
+
"react/no-will-update-set-state",
|
|
815
820
|
"react/void-dom-elements-no-children",
|
|
816
821
|
"@typescript-eslint/await-thenable",
|
|
817
822
|
"@typescript-eslint/no-floating-promises",
|
|
@@ -853,8 +858,10 @@ const correctnessRules = [
|
|
|
853
858
|
"unicorn/prefer-string-starts-ends-with",
|
|
854
859
|
"vitest/no-conditional-tests",
|
|
855
860
|
"vitest/require-local-test-context-for-concurrent-snapshots",
|
|
861
|
+
"vitest/warn-todo",
|
|
856
862
|
"vue/no-deprecated-destroyed-lifecycle",
|
|
857
863
|
"vue/no-export-in-script-setup",
|
|
864
|
+
"vue/no-this-in-before-route-enter",
|
|
858
865
|
"vue/prefer-import-from-vue",
|
|
859
866
|
"vue/valid-define-emits",
|
|
860
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",
|
|
@@ -30,8 +30,7 @@
|
|
|
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 ."
|
|
@@ -76,10 +75,9 @@
|
|
|
76
75
|
"lint-staged": "^16.1.2",
|
|
77
76
|
"next": "^16.0.0",
|
|
78
77
|
"oxfmt": "^0.21.0",
|
|
79
|
-
"oxlint": "^1.
|
|
78
|
+
"oxlint": "^1.37.0",
|
|
80
79
|
"oxlint-tsgolint": "^0.8.3",
|
|
81
80
|
"tsdown": "^0.18.0",
|
|
82
|
-
"typescript": "^5.8.3",
|
|
83
81
|
"typescript-eslint": "^8.35.0",
|
|
84
82
|
"vitest": "^4.0.0"
|
|
85
83
|
},
|
|
@@ -89,5 +87,5 @@
|
|
|
89
87
|
"lint-staged": {
|
|
90
88
|
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
91
89
|
},
|
|
92
|
-
"packageManager": "pnpm@10.
|
|
90
|
+
"packageManager": "pnpm@10.27.0"
|
|
93
91
|
}
|