From 49879c43ebd9f36ec19f4c02fa2b121314126286 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Fri, 29 May 2026 23:44:08 +0000
Subject: style: apply biome autofixes and resolve remaining lint findings

Auto-fixed cosmetic findings (import ordering, obj["k"]->obj.k, optional
chaining, template literals, Date.now, parseInt radix, useless ternaries/
switch cases). Resolved the non-autofixable rest by hand:

- Senpy: static-only class -> object literal (no this/static reliance).
- app.html: var global shim -> window.global = window (keeps the shim,
  drops the unused-var flag).
- biome-ignore with rationale for the logout document.cookie clear and the
  holodule scrape non-null assertion.

Verified: biome check 0 diagnostics, svelte-check 0/0, 24/24 unit tests.
---
 src/lib/List/Anime/AnimeListTemplate.svelte | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'src/lib/List/Anime/AnimeListTemplate.svelte')

diff --git a/src/lib/List/Anime/AnimeListTemplate.svelte b/src/lib/List/Anime/AnimeListTemplate.svelte
index 538889b4..ae7ee1f1 100644
--- a/src/lib/List/Anime/AnimeListTemplate.svelte
+++ b/src/lib/List/Anime/AnimeListTemplate.svelte
@@ -1,18 +1,18 @@
 <script lang="ts">
+import localforage from "localforage";
+import { onMount } from "svelte";
+import { browser } from "$app/environment";
 import type { AniListAuthorisation } from "$lib/Data/AniList/identity";
 import type { Media } from "$lib/Data/AniList/media";
 import RateLimitedError from "$lib/Error/RateLimited.svelte";
-import settings from "$stores/settings";
-import CleanAnimeList from "./CleanAnimeList.svelte";
-import ListTitle from "../ListTitle.svelte";
 import type { SubsPlease } from "$lib/Media/Anime/Airing/Subtitled/subsPlease";
-import PlaceholderList from "./PlaceholderList.svelte";
-import { browser } from "$app/environment";
-import { onMount } from "svelte";
-import subsPlease from "$stores/subsPlease";
 import identity from "$stores/identity";
-import localforage from "localforage";
+import settings from "$stores/settings";
+import subsPlease from "$stores/subsPlease";
+import ListTitle from "../ListTitle.svelte";
 import type { Title } from "../mediaTitle";
+import CleanAnimeList from "./CleanAnimeList.svelte";
+import PlaceholderList from "./PlaceholderList.svelte";
 
 export let endTime: number;
 export let cleanMedia: (
@@ -51,7 +51,7 @@ onMount(async () => {
 			}AnimeListLength`,
 		)) as string | null;
 
-		if (lastStoredList) lastListSize = parseInt(lastStoredList);
+		if (lastStoredList) lastListSize = parseInt(lastStoredList, 10);
 	}
 });
 </script>
-- 
cgit v1.2.3

