move to biomejs instead of eslint

This commit is contained in:
creations 2025-04-11 04:07:42 -04:00
parent f7082d05c1
commit d6a25705b4
Signed by: creations
GPG key ID: 8F553AA4320FC711
11 changed files with 81 additions and 227 deletions

View file

@ -1,6 +1,6 @@
export function timestampToReadable(timestamp?: number): string {
const date: Date =
timestamp && !isNaN(timestamp) ? new Date(timestamp) : new Date();
if (isNaN(date.getTime())) return "Invalid Date";
timestamp && !Number.isNaN(timestamp) ? new Date(timestamp) : new Date();
if (Number.isNaN(date.getTime())) return "Invalid Date";
return date.toISOString().replace("T", " ").replace("Z", "");
}