chore: Apply linting rules and add git hok (#611)

Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
This commit is contained in:
lostb1t
2025-03-16 18:01:12 +01:00
committed by GitHub
parent 2688e1b981
commit 92513e234f
268 changed files with 9197 additions and 8394 deletions

View File

@@ -6,7 +6,7 @@
* @returns A string formatted as "Xh Ym" where X is hours and Y is minutes.
*/
export const runtimeTicksToMinutes = (
ticks: number | null | undefined
ticks: number | null | undefined,
): string => {
if (!ticks) return "0h 0m";
@@ -21,7 +21,7 @@ export const runtimeTicksToMinutes = (
};
export const runtimeTicksToSeconds = (
ticks: number | null | undefined
ticks: number | null | undefined,
): string => {
if (!ticks) return "0h 0m";
@@ -39,7 +39,7 @@ export const runtimeTicksToSeconds = (
// t: ms
export const formatTimeString = (
t: number | null | undefined,
unit: "s" | "ms" | "tick" = "ms"
unit: "s" | "ms" | "tick" = "ms",
): string => {
if (t === null || t === undefined) return "0:00";