refactor(scripts): cleanup & enforce code style (#1388)

This commit is contained in:
uncenter authored and GitHub committed 2024-10-27 15:32:00 -04:00
1 parent 7db9b234c1
commit 5d74d700a2
23 files changed
+290 -270

No files matched your search

+3 -3
View File
@@ -7,11 +7,11 @@ export type LoggerProps = core.AnnotationProperties & {
content?: string;
};
const prettyPrint = (
function prettyPrint(
message: string,
props: LoggerProps,
severity: "error" | "warning" = "warning",
) => {
) {
const { file, startColumn, startLine } = props;
const lines = (props.content ?? "").split("\n");
@@ -73,7 +73,7 @@ const prettyPrint = (
);
console.log("\n" + logs.join("\n"));
};
}
export const log = {
failed: false,