make eslint happy

zio/stable
Ben Harris 2023-05-30 18:27:33 -04:00
parent f2cf1d8c79
commit 439135944c
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ export function ago(date: number | string | Date): string {
} else if (diffSeconds < WEEK) { } else if (diffSeconds < WEEK) {
return `${Math.floor(diffSeconds / DAY)}d` return `${Math.floor(diffSeconds / DAY)}d`
} else { } 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',
})
} }
} }