chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.

This commit is contained in:
cpojer
2026-01-31 16:03:28 +09:00
parent 481f696a87
commit 15792b153f
292 changed files with 643 additions and 699 deletions

View File

@@ -108,7 +108,7 @@ export function searchStickers(query: string, limit = 10): CachedSticker[] {
}
return results
.sort((a, b) => b.score - a.score)
.toSorted((a, b) => b.score - a.score)
.slice(0, limit)
.map((r) => r.sticker);
}
@@ -130,7 +130,7 @@ export function getCacheStats(): { count: number; oldestAt?: string; newestAt?:
if (stickers.length === 0) {
return { count: 0 };
}
const sorted = [...stickers].sort(
const sorted = [...stickers].toSorted(
(a, b) => new Date(a.cachedAt).getTime() - new Date(b.cachedAt).getTime(),
);
return {