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/routes/+page.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'frontend/src/routes/+page.svelte')

diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte
index 237b573..4b921bb 100644
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@ -51,21 +51,21 @@
 		<div class="flex flex-col gap-8" in:fade={fadeDefault}>
 			{#if recent && recent.count > 0}
 				<Carousel title="Recently added" href={recentLink}>
-					{#each recent.edges as comic}
+					{#each recent.edges as comic (comic.id)}
 						<ComicCard coverOnly {comic} />
 					{/each}
 				</Carousel>
 			{/if}
 			{#if favourites && favourites.count > 0}
 				<Carousel title="Favourites" href={favouriteLink}>
-					{#each favourites.edges as comic}
+					{#each favourites.edges as comic (comic.id)}
 						<ComicCard coverOnly {comic} />
 					{/each}
 				</Carousel>
 			{/if}
 			{#if bookmarked && bookmarked.count > 0}
 				<Carousel title="Bookmarks" href={bookmarkLink}>
-					{#each bookmarked.edges as comic}
+					{#each bookmarked.edges as comic (comic.id)}
 						<ComicCard coverOnly {comic} />
 					{/each}
 				</Carousel>
-- 
cgit v1.2.3-2-gb3c3

