Skip to content

Commit 88f3bdc

Browse files
autofix-ci[bot]Brooooooklyn
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 79ad122 commit 88f3bdc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/oxlint/scripts/build.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ for (const filename of readdirSync(srcDirPath)) {
3838
}
3939

4040
try {
41-
const { lines } = await quicktypeJSONSchema(
42-
"OxlintConfig",
43-
readFileSync(jsonSchemaPath, "utf8"),
44-
);
41+
const { lines } = await quicktypeJSONSchema("OxlintConfig", readFileSync(jsonSchemaPath, "utf8"));
4542
writeFileSync(join(distDirPath, "config.d.ts"), lines.join("\n"));
4643
console.log("Translated oxlint config JSON schema into TypeScript");
4744
} catch (error) {
@@ -66,6 +63,6 @@ async function quicktypeJSONSchema(typeName: string, jsonSchemaString: string) {
6663
lang: "typescript",
6764
rendererOptions: {
6865
"prefer-unions": true,
69-
}
66+
},
7067
});
7168
}

0 commit comments

Comments
 (0)