biome-to-oxc 1.2.0 → 1.3.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 readJsonFile, n as DefaultReporter, r as findClosestPackageJson, t as migrate } from "../src-
|
|
2
|
+
import { i as readJsonFile, n as DefaultReporter, r as findClosestPackageJson, t as migrate } from "../src-DdQxUIcx.mjs";
|
|
3
3
|
import { realpath } from "node:fs/promises";
|
|
4
4
|
import { dirname } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/dist/src/index.d.mts
CHANGED
|
@@ -223,6 +223,11 @@ interface OxfmtConfig {
|
|
|
223
223
|
htmlWhitespaceSensitivity?: 'css' | 'strict' | 'ignore';
|
|
224
224
|
proseWrap?: 'always' | 'never' | 'preserve';
|
|
225
225
|
vueIndentScriptAndStyle?: boolean;
|
|
226
|
+
svelte?: boolean | {
|
|
227
|
+
allowShorthand?: boolean;
|
|
228
|
+
indentScriptAndStyle?: boolean;
|
|
229
|
+
sortOrder?: string;
|
|
230
|
+
};
|
|
226
231
|
sortImports?: {
|
|
227
232
|
order?: 'asc' | 'desc';
|
|
228
233
|
newlinesBetween?: boolean;
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as migrate } from "../src-
|
|
1
|
+
import { t as migrate } from "../src-DdQxUIcx.mjs";
|
|
2
2
|
export { migrate };
|
|
@@ -555,7 +555,8 @@ const EXPLICIT_OXFMT_OPTION_KEYS$1 = [
|
|
|
555
555
|
"vueIndentScriptAndStyle",
|
|
556
556
|
"sortImports",
|
|
557
557
|
"sortPackageJson",
|
|
558
|
-
"sortTailwindcss"
|
|
558
|
+
"sortTailwindcss",
|
|
559
|
+
"svelte"
|
|
559
560
|
];
|
|
560
561
|
const LEGACY_EXPLICIT_OXFMT_OPTION_ALIASES$1 = {
|
|
561
562
|
experimentalSortImports: "sortImports",
|
|
@@ -795,9 +796,11 @@ const BIOME_TO_OXLINT_RULE_MAP = {
|
|
|
795
796
|
noImportAssign: "no-import-assign",
|
|
796
797
|
noInnerDeclarations: "no-inner-declarations",
|
|
797
798
|
noImplicitBoolean: "no-implicit-coercion",
|
|
799
|
+
noImpliedEval: "no-implied-eval",
|
|
798
800
|
noInvalidBuiltinInstantiation: "no-new-native-nonconstructor",
|
|
799
801
|
noInvalidUseBeforeDeclaration: "no-use-before-define",
|
|
800
802
|
noInvalidConstructorSuper: "no-this-before-super",
|
|
803
|
+
noInteractiveElementToNoninteractiveRole: "jsx_a11y/no-interactive-element-to-noninteractive-role",
|
|
801
804
|
noInvalidNewBuiltin: "no-new-native-nonconstructor",
|
|
802
805
|
noLabelWithoutControl: "jsx_a11y/label-has-associated-control",
|
|
803
806
|
noLabelVar: "no-label-var",
|
|
@@ -805,6 +808,9 @@ const BIOME_TO_OXLINT_RULE_MAP = {
|
|
|
805
808
|
noMisleadingInstantiator: "typescript/no-misused-new",
|
|
806
809
|
noNewSymbol: "no-new-native-nonconstructor",
|
|
807
810
|
noNodejsModules: "import/no-nodejs-modules",
|
|
811
|
+
noNestedComponentDefinitions: "react/no-unstable-nested-components",
|
|
812
|
+
noNoninteractiveElementInteractions: "jsx_a11y/no-noninteractive-element-interactions",
|
|
813
|
+
noNoninteractiveElementToInteractiveRole: "jsx_a11y/no-noninteractive-element-to-interactive-role",
|
|
808
814
|
noNonNullAssertion: "typescript/no-non-null-assertion",
|
|
809
815
|
noNonoctalDecimalEscape: "no-nonoctal-decimal-escape",
|
|
810
816
|
noParameterAssign: "no-param-reassign",
|
|
@@ -857,6 +863,7 @@ const BIOME_TO_OXLINT_RULE_MAP = {
|
|
|
857
863
|
noVoidTypeReturn: "typescript/no-invalid-void-type",
|
|
858
864
|
noWith: "no-with",
|
|
859
865
|
useAltText: "jsx_a11y/alt-text",
|
|
866
|
+
useArrowFunction: "prefer-arrow-callback",
|
|
860
867
|
useAwaitThenable: "typescript/await-thenable",
|
|
861
868
|
useButtonType: "react/button-has-type",
|
|
862
869
|
useAriaPropTypes: "jsx_a11y/aria-proptypes",
|
|
@@ -883,6 +890,7 @@ const BIOME_TO_OXLINT_RULE_MAP = {
|
|
|
883
890
|
useNodejsImportProtocol: "unicorn/prefer-node-protocol",
|
|
884
891
|
useOptionalChain: "typescript/prefer-optional-chain",
|
|
885
892
|
useReactFunctionComponents: "react/prefer-function-component",
|
|
893
|
+
useRegexLiterals: "prefer-regex-literals",
|
|
886
894
|
useSemanticElements: "jsx_a11y/prefer-tag-over-role",
|
|
887
895
|
useSimplifiedLogicExpression: "unicorn/prefer-logical-operator-over-ternary",
|
|
888
896
|
useTemplate: "prefer-template",
|
|
@@ -1028,7 +1036,8 @@ const EXPLICIT_OXFMT_OPTION_KEYS = [
|
|
|
1028
1036
|
"vueIndentScriptAndStyle",
|
|
1029
1037
|
"sortImports",
|
|
1030
1038
|
"sortPackageJson",
|
|
1031
|
-
"sortTailwindcss"
|
|
1039
|
+
"sortTailwindcss",
|
|
1040
|
+
"svelte"
|
|
1032
1041
|
];
|
|
1033
1042
|
const LEGACY_EXPLICIT_OXFMT_OPTION_ALIASES = {
|
|
1034
1043
|
experimentalSortImports: "sortImports",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biome-to-oxc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Migrate from Biome to Oxc ecosystem (oxlint + oxfmt + oxlint-tsgolint)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"biome",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"commander": "15.0.0-0",
|
|
37
37
|
"jsonc-parser": "next",
|
|
38
38
|
"picocolors": "^1.1.1",
|
|
39
|
-
"zod": "^4.3
|
|
39
|
+
"zod": "^4.4.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^25.
|
|
43
|
-
"@vitest/coverage-v8": "^4.1.
|
|
44
|
-
"oxfmt": "^0.
|
|
45
|
-
"oxlint": "^1.
|
|
46
|
-
"oxlint-tsgolint": "^0.
|
|
47
|
-
"tsdown": "^0.
|
|
42
|
+
"@types/node": "^25.9.1",
|
|
43
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
44
|
+
"oxfmt": "^0.51.0",
|
|
45
|
+
"oxlint": "^1.66.0",
|
|
46
|
+
"oxlint-tsgolint": "^0.23.0",
|
|
47
|
+
"tsdown": "^0.22.0",
|
|
48
48
|
"typescript": "^6.0.3",
|
|
49
|
-
"vitest": "^4.1.
|
|
49
|
+
"vitest": "^4.1.7"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=22.22.
|
|
53
|
-
"pnpm": ">=
|
|
52
|
+
"node": ">=22.22.3",
|
|
53
|
+
"pnpm": ">=11.2.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest",
|