From f8e2f64316354b36099a01eef0735ec0970f5b99 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Wed, 26 Mar 2025 19:40:28 +0100
Subject: frontend: Migrate to eslint-plugin-svelte 3.0

This includes a migration to a flat eslint.config.js, which will now
also automatically ignore items from .gitignore. eslint-plugin-svelte
3.0 comes with a couple of changes to recommended rules as well, these
are also addressed in this commit.
---
 frontend/src/lib/reader/PageView.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'frontend/src/lib/reader/PageView.svelte')

diff --git a/frontend/src/lib/reader/PageView.svelte b/frontend/src/lib/reader/PageView.svelte
index 50c0873..4eb3d56 100644
--- a/frontend/src/lib/reader/PageView.svelte
+++ b/frontend/src/lib/reader/PageView.svelte
@@ -102,6 +102,7 @@
 			{@render pagesIn(currentChunk)}
 		</SliderMargin>
 		<div class:reverse class="flex w-full bg-gray-400/60 backdrop-blur-2xl">
+			<!-- eslint-disable-next-line svelte/require-each-key -->
 			{#each chunks as chunk, index}
 				<button
 					type="button"
@@ -123,7 +124,7 @@
 </div>
 
 <div class="invisible absolute">
-	{#each pagesAround(reader.page) as page}
+	{#each pagesAround(reader.page) as page (page.id)}
 		<img src={src(page.image, 'full')} alt="" />
 	{/each}
 </div>
-- 
cgit v1.2.3-2-gb3c3

