From 439135944c3e369675999fe5b526809f85df5b32 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 30 May 2023 18:27:33 -0400 Subject: [PATCH] make eslint happy --- src/lib/strings/time.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/strings/time.ts b/src/lib/strings/time.ts index 40a307c3..3f284755 100644 --- a/src/lib/strings/time.ts +++ b/src/lib/strings/time.ts @@ -22,7 +22,11 @@ export function ago(date: number | string | Date): string { } else if (diffSeconds < WEEK) { return `${Math.floor(diffSeconds / DAY)}d` } else { - return new Date(ts).toLocaleDateString('en-us', {year: 'numeric', month: 'short', day: 'numeric'}) + return new Date(ts).toLocaleDateString('en-us', { + year: 'numeric', + month: 'short', + day: 'numeric', + }) } }