@oxlint/migrate 1.65.0 → 1.66.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 { a as nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, s as normalizeRuleToCanonical, t as main } from "../src-
|
|
2
|
+
import { a as nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, s as normalizeRuleToCanonical, t as main } from "../src-IOFYZ1gX.mjs";
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
import { existsSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -30,7 +30,7 @@ const loadESLintConfig = async (filePath) => {
|
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region package.json
|
|
33
|
-
var version = "1.
|
|
33
|
+
var version = "1.66.0";
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/walker/comments/replaceRuleDirectiveComment.ts
|
|
36
36
|
const allRulesSet = new Set(Object.values(rules_exports).flat());
|
package/dist/src/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/oxlint@1.
|
|
1
|
+
//#region node_modules/.pnpm/oxlint@1.66.0_oxlint-tsgolint@0.22.1/node_modules/oxlint/dist/index.d.ts
|
|
2
2
|
//#region src-js/package/config.generated.d.ts
|
|
3
3
|
type AllowWarnDeny = ("allow" | "off" | "warn" | "error" | "deny") | number;
|
|
4
4
|
type GlobalValue = "readonly" | "writable" | "off";
|
|
@@ -503,6 +503,7 @@ interface DummyRuleMap {
|
|
|
503
503
|
"grouped-accessor-pairs"?: DummyRule;
|
|
504
504
|
"guard-for-in"?: DummyRule;
|
|
505
505
|
"id-length"?: DummyRule;
|
|
506
|
+
"id-match"?: DummyRule;
|
|
506
507
|
"import/consistent-type-specifier-style"?: DummyRule;
|
|
507
508
|
"import/default"?: DummyRule;
|
|
508
509
|
"import/export"?: DummyRule;
|
|
@@ -513,6 +514,7 @@ interface DummyRuleMap {
|
|
|
513
514
|
"import/max-dependencies"?: DummyRule;
|
|
514
515
|
"import/named"?: DummyRule;
|
|
515
516
|
"import/namespace"?: DummyRule;
|
|
517
|
+
"import/newline-after-import"?: DummyRule;
|
|
516
518
|
"import/no-absolute-path"?: DummyRule;
|
|
517
519
|
"import/no-amd"?: DummyRule;
|
|
518
520
|
"import/no-anonymous-default-export"?: DummyRule;
|
|
@@ -726,6 +728,7 @@ interface DummyRuleMap {
|
|
|
726
728
|
"no-global-assign"?: DummyRule;
|
|
727
729
|
"no-implicit-coercion"?: DummyRule;
|
|
728
730
|
"no-implicit-globals"?: DummyRule;
|
|
731
|
+
"no-implied-eval"?: DummyRule;
|
|
729
732
|
"no-import-assign"?: DummyRule;
|
|
730
733
|
"no-inline-comments"?: DummyRule;
|
|
731
734
|
"no-inner-declarations"?: DummyRule;
|
|
@@ -912,6 +915,7 @@ interface DummyRuleMap {
|
|
|
912
915
|
"react/no-is-mounted"?: DummyRule;
|
|
913
916
|
"react/no-multi-comp"?: DummyRule;
|
|
914
917
|
"react/no-namespace"?: DummyRule;
|
|
918
|
+
"react/no-object-type-as-default-prop"?: DummyRule;
|
|
915
919
|
"react/no-react-children"?: DummyRule;
|
|
916
920
|
"react/no-redundant-should-component-update"?: DummyRule;
|
|
917
921
|
"react/no-render-return-value"?: DummyRule;
|
|
@@ -921,6 +925,7 @@ interface DummyRuleMap {
|
|
|
921
925
|
"react/no-unescaped-entities"?: DummyRule;
|
|
922
926
|
"react/no-unknown-property"?: DummyRule;
|
|
923
927
|
"react/no-unsafe"?: DummyRule;
|
|
928
|
+
"react/no-unstable-nested-components"?: DummyRule;
|
|
924
929
|
"react/no-will-update-set-state"?: DummyRule;
|
|
925
930
|
"react/only-export-components"?: DummyRule;
|
|
926
931
|
"react/prefer-es6-class"?: DummyRule;
|
|
@@ -1211,6 +1216,7 @@ interface DummyRuleMap {
|
|
|
1211
1216
|
"vitest/no-test-prefixes"?: DummyRule;
|
|
1212
1217
|
"vitest/no-test-return-statement"?: DummyRule;
|
|
1213
1218
|
"vitest/no-unneeded-async-expect-function"?: DummyRule;
|
|
1219
|
+
"vitest/padding-around-after-all-blocks"?: DummyRule;
|
|
1214
1220
|
"vitest/prefer-called-exactly-once-with"?: DummyRule;
|
|
1215
1221
|
"vitest/prefer-called-once"?: DummyRule;
|
|
1216
1222
|
"vitest/prefer-called-times"?: DummyRule;
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as main } from "../src-
|
|
1
|
+
import { t as main } from "../src-IOFYZ1gX.mjs";
|
|
2
2
|
export { main as default };
|
|
@@ -541,6 +541,7 @@ const styleRules = [
|
|
|
541
541
|
"grouped-accessor-pairs",
|
|
542
542
|
"guard-for-in",
|
|
543
543
|
"id-length",
|
|
544
|
+
"id-match",
|
|
544
545
|
"init-declarations",
|
|
545
546
|
"logical-assignment-operators",
|
|
546
547
|
"max-params",
|
|
@@ -585,6 +586,7 @@ const styleRules = [
|
|
|
585
586
|
"import/exports-last",
|
|
586
587
|
"import/first",
|
|
587
588
|
"import/group-exports",
|
|
589
|
+
"import/newline-after-import",
|
|
588
590
|
"import/no-anonymous-default-export",
|
|
589
591
|
"import/no-duplicates",
|
|
590
592
|
"import/no-mutable-exports",
|
|
@@ -751,6 +753,7 @@ const styleRules = [
|
|
|
751
753
|
"vitest/no-test-prefixes",
|
|
752
754
|
"vitest/no-test-return-statement",
|
|
753
755
|
"vitest/no-unneeded-async-expect-function",
|
|
756
|
+
"vitest/padding-around-after-all-blocks",
|
|
754
757
|
"vitest/prefer-called-exactly-once-with",
|
|
755
758
|
"vitest/prefer-called-once",
|
|
756
759
|
"vitest/prefer-called-times",
|
|
@@ -795,6 +798,7 @@ const suspiciousRules = [
|
|
|
795
798
|
"block-scoped-var",
|
|
796
799
|
"no-extend-native",
|
|
797
800
|
"no-extra-bind",
|
|
801
|
+
"no-implied-eval",
|
|
798
802
|
"no-new",
|
|
799
803
|
"no-shadow",
|
|
800
804
|
"no-underscore-dangle",
|
|
@@ -818,6 +822,7 @@ const suspiciousRules = [
|
|
|
818
822
|
"react/jsx-no-comment-textnodes",
|
|
819
823
|
"react/jsx-no-script-url",
|
|
820
824
|
"react/no-namespace",
|
|
825
|
+
"react/no-unstable-nested-components",
|
|
821
826
|
"react/react-in-jsx-scope",
|
|
822
827
|
"react/style-prop-object",
|
|
823
828
|
"typescript/consistent-return",
|
|
@@ -1182,6 +1187,7 @@ const perfRules = [
|
|
|
1182
1187
|
"no-useless-call",
|
|
1183
1188
|
"react/jsx-no-constructed-context-values",
|
|
1184
1189
|
"react/no-array-index-key",
|
|
1190
|
+
"react/no-object-type-as-default-prop",
|
|
1185
1191
|
"react-perf/jsx-no-jsx-as-prop",
|
|
1186
1192
|
"react-perf/jsx-no-new-array-as-prop",
|
|
1187
1193
|
"react-perf/jsx-no-new-function-as-prop",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.66.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"commander": "^14.0.0",
|
|
42
42
|
"globals": "^17.0.0",
|
|
43
|
-
"oxc-parser": "^0.
|
|
43
|
+
"oxc-parser": "^0.131.0",
|
|
44
44
|
"tinyglobby": "^0.2.14"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@antfu/eslint-config": "^8.0.0",
|
|
48
48
|
"@babel/eslint-plugin": "^7.27.1",
|
|
49
|
-
"@e18e/eslint-plugin": "^0.
|
|
49
|
+
"@e18e/eslint-plugin": "^0.5.0",
|
|
50
50
|
"@eslint-react/eslint-plugin": "^4.0.0",
|
|
51
51
|
"@eslint/js": "^10.0.0",
|
|
52
52
|
"@logux/eslint-config": "^57.0.0",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"husky": "^9.1.7",
|
|
84
84
|
"lint-staged": "^16.1.2",
|
|
85
85
|
"next": "^16.0.0",
|
|
86
|
-
"oxfmt": "^0.
|
|
87
|
-
"oxlint": "^1.
|
|
86
|
+
"oxfmt": "^0.50.0",
|
|
87
|
+
"oxlint": "^1.66.0",
|
|
88
88
|
"oxlint-tsgolint": "^0.22.0",
|
|
89
89
|
"tsdown": "^0.22.0",
|
|
90
90
|
"typescript": "^6.0.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"lint-staged": {
|
|
95
95
|
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
96
96
|
},
|
|
97
|
-
"packageManager": "pnpm@11.
|
|
97
|
+
"packageManager": "pnpm@11.1.2"
|
|
98
98
|
}
|