refactor(scripts): cleanup & enforce code style (#1388)
This commit is contained in:
1 parent
7db9b234c1
commit
5d74d700a2
23 files changed
+290
-270
No files matched your search
+3
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user