@oxlint/migrate 1.34.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,
|
|
@@ -252,6 +252,7 @@ const pedanticRules = [
|
|
|
252
252
|
"unicorn/escape-case",
|
|
253
253
|
"unicorn/explicit-length-check",
|
|
254
254
|
"unicorn/new-for-builtins",
|
|
255
|
+
"unicorn/no-immediate-mutation",
|
|
255
256
|
"unicorn/no-unnecessary-array-splice-count",
|
|
256
257
|
"unicorn/no-array-callback-reference",
|
|
257
258
|
"unicorn/no-unnecessary-array-flat-depth",
|
|
@@ -310,6 +311,7 @@ const styleRules = [
|
|
|
310
311
|
"id-length",
|
|
311
312
|
"init-declarations",
|
|
312
313
|
"max-params",
|
|
314
|
+
"max-statements",
|
|
313
315
|
"new-cap",
|
|
314
316
|
"no-implicit-coercion",
|
|
315
317
|
"no-useless-computed-key",
|
|
@@ -393,6 +395,7 @@ const styleRules = [
|
|
|
393
395
|
"jest/prefer-todo",
|
|
394
396
|
"jest/require-hook",
|
|
395
397
|
"jest/require-top-level-describe",
|
|
398
|
+
"node/global-require",
|
|
396
399
|
"node/no-exports-assign",
|
|
397
400
|
"promise/avoid-new",
|
|
398
401
|
"promise/no-return-wrap",
|
|
@@ -406,6 +409,7 @@ const styleRules = [
|
|
|
406
409
|
"react/jsx-boolean-value",
|
|
407
410
|
"react/jsx-curly-brace-presence",
|
|
408
411
|
"react/jsx-handler-names",
|
|
412
|
+
"react/jsx-max-depth",
|
|
409
413
|
"react/jsx-props-no-spreading",
|
|
410
414
|
"react/no-redundant-should-component-update",
|
|
411
415
|
"react/no-set-state",
|
|
@@ -462,11 +466,14 @@ const styleRules = [
|
|
|
462
466
|
"unicorn/prefer-string-raw",
|
|
463
467
|
"unicorn/prefer-string-trim-start-end",
|
|
464
468
|
"unicorn/prefer-structured-clone",
|
|
469
|
+
"unicorn/require-module-attributes",
|
|
465
470
|
"unicorn/require-array-join-separator",
|
|
466
471
|
"unicorn/switch-case-braces",
|
|
467
472
|
"unicorn/text-encoding-identifier-case",
|
|
468
473
|
"unicorn/throw-new-error",
|
|
474
|
+
"vitest/consistent-test-filename",
|
|
469
475
|
"vitest/no-import-node-test",
|
|
476
|
+
"vitest/prefer-called-times",
|
|
470
477
|
"vitest/prefer-to-be-falsy",
|
|
471
478
|
"vitest/prefer-to-be-object",
|
|
472
479
|
"vitest/prefer-to-be-truthy",
|
|
@@ -742,6 +749,7 @@ const correctnessRules = [
|
|
|
742
749
|
"jsx-a11y/anchor-is-valid",
|
|
743
750
|
"jsx-a11y/aria-activedescendant-has-tabindex",
|
|
744
751
|
"jsx-a11y/aria-props",
|
|
752
|
+
"jsx-a11y/aria-proptypes",
|
|
745
753
|
"jsx-a11y/aria-role",
|
|
746
754
|
"jsx-a11y/aria-unsupported-elements",
|
|
747
755
|
"jsx-a11y/autocomplete-valid",
|
|
@@ -795,6 +803,7 @@ const correctnessRules = [
|
|
|
795
803
|
"react/jsx-no-duplicate-props",
|
|
796
804
|
"react/jsx-no-undef",
|
|
797
805
|
"react/jsx-props-no-spread-multi",
|
|
806
|
+
"react/no-did-mount-set-state",
|
|
798
807
|
"react/no-children-prop",
|
|
799
808
|
"react/no-danger-with-children",
|
|
800
809
|
"react/no-direct-mutation-state",
|
|
@@ -802,6 +811,7 @@ const correctnessRules = [
|
|
|
802
811
|
"react/no-is-mounted",
|
|
803
812
|
"react/no-render-return-value",
|
|
804
813
|
"react/no-string-refs",
|
|
814
|
+
"react/no-unsafe",
|
|
805
815
|
"react/void-dom-elements-no-children",
|
|
806
816
|
"@typescript-eslint/await-thenable",
|
|
807
817
|
"@typescript-eslint/no-floating-promises",
|
|
@@ -843,6 +853,7 @@ const correctnessRules = [
|
|
|
843
853
|
"unicorn/prefer-string-starts-ends-with",
|
|
844
854
|
"vitest/no-conditional-tests",
|
|
845
855
|
"vitest/require-local-test-context-for-concurrent-snapshots",
|
|
856
|
+
"vue/no-deprecated-destroyed-lifecycle",
|
|
846
857
|
"vue/no-export-in-script-setup",
|
|
847
858
|
"vue/prefer-import-from-vue",
|
|
848
859
|
"vue/valid-define-emits",
|
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
|
}
|