style: run prettier on pre-commit hook

This commit is contained in:
Stefan Rotsch
2023-06-01 16:43:09 +02:00
committed by Stefan Rotsch
parent b82d5a9da9
commit 9948712690
15 changed files with 50 additions and 45 deletions

View File

@@ -5,6 +5,7 @@ import highlight from "highlight.js";
import { marked } from "marked";
import * as path from "path";
import { ConfigData, publicUrl } from "../../src/config";
import {
FlagType,
Item,
@@ -15,8 +16,6 @@ import {
import { appBuild } from "../paths";
import { getAllMarkdownFiles, radarPath } from "./file";
import { ConfigData, publicUrl } from "../../src/config";
marked.setOptions({
highlight: (code: any) => highlight.highlightAuto(code).value,
});
@@ -147,7 +146,7 @@ const addRevisionToItem = (
body: "",
info: "",
angleFraction: Math.random(),
radiusFraction: Math.random()
radiusFraction: Math.random(),
},
revision: Revision
): Item => {