From 5daabeb615d2b17bdca4694b21c5caf5da88c3bb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 1 Mar 2026 15:58:14 -0800 Subject: chore(biome): re-enable noDoubleEquals rule --- src/lib/Data/AniList/wrapped.ts | 4 ++-- src/lib/Media/Manga/chapters.ts | 4 ++-- src/lib/Utility/notifications.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Data/AniList/wrapped.ts b/src/lib/Data/AniList/wrapped.ts index 4ca9f772..781d8e7f 100644 --- a/src/lib/Data/AniList/wrapped.ts +++ b/src/lib/Data/AniList/wrapped.ts @@ -105,7 +105,7 @@ const profileActivities = async ( .flat() .filter( (activity) => - activity.type == 'TEXT' && + activity.type === 'TEXT' && activity.createdAt > beginningOfYear && activity.createdAt < now / 1000 ).length, @@ -113,7 +113,7 @@ const profileActivities = async ( .flat() .filter( (activity) => - activity.type == 'MESSAGE' && + activity.type === 'MESSAGE' && activity.createdAt > beginningOfYear && activity.createdAt < now / 1000 ).length diff --git a/src/lib/Media/Manga/chapters.ts b/src/lib/Media/Manga/chapters.ts index 32e1f0fc..caac1fbd 100644 --- a/src/lib/Media/Manga/chapters.ts +++ b/src/lib/Media/Manga/chapters.ts @@ -38,7 +38,7 @@ const getManga = async ( break; } - const nullIfNullString = (s: string | null) => (s == 'null' ? null : s); + const nullIfNullString = (s: string | null) => (s === 'null' ? null : s); const get = async (title: string) => { try { return await ( @@ -195,7 +195,7 @@ export const chapterCount = async ( lastChapter = (await getChapterCount(manga.title.native)) || 0; } - if (lastChapter == 0) lastChapter = -1; + if (lastChapter === 0) lastChapter = -1; await database.chapters.put({ id: manga.id, diff --git a/src/lib/Utility/notifications.ts b/src/lib/Utility/notifications.ts index 596eec2a..92f1f1f9 100644 --- a/src/lib/Utility/notifications.ts +++ b/src/lib/Utility/notifications.ts @@ -44,7 +44,7 @@ const updateLocalNotifications = async () => { const recentNotifications = await notifications(user.user.accessToken); - if ((await window.Notification.requestPermission()) == 'granted') + if ((await window.Notification.requestPermission()) === 'granted') if (recentNotifications && isNotificationQueued(recentNotifications, user.lastNotificationID)) { await updateLastNotificationID(user.id, recentNotifications); -- cgit v1.2.3