From 3f5969a08c16a392e84d2ec3033f57d06e6704c2 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 23 Nov 2025 14:26:56 +0000 Subject: [PATCH] lint: remove unused imports and variables (11 fixes) Co-Authored-By: Justin Edmund --- package.json | 1 + pnpm-lock.yaml | 9 +++++++++ src/lib/admin/useFormGuards.svelte.ts | 2 +- src/lib/components/Avatar.svelte | 2 +- src/lib/components/DebugPanel.svelte | 4 +--- src/lib/components/DynamicPostContent.svelte | 1 - src/lib/components/NavDropdown.svelte | 18 ------------------ src/lib/components/PhotoGrid.svelte | 2 +- src/lib/components/PhotoItem.svelte | 2 +- src/lib/components/PhotoMetadata.svelte | 1 - src/lib/components/RecentAlbums.svelte | 2 +- src/lib/components/Slideshow.svelte | 3 +-- 12 files changed, 17 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 8f50f0e..344e332 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "type": "module", "dependencies": { "@aarkue/tiptap-math-extension": "^1.3.6", + "@eslint/js": "^9.39.1", "@floating-ui/dom": "^1.7.1", "@prisma/client": "^6.8.2", "@sveltejs/adapter-node": "^5.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f77bd30..662a99a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@aarkue/tiptap-math-extension': specifier: ^1.3.6 version: 1.4.0(@tiptap/core@2.26.2(@tiptap/pm@2.26.2))(@tiptap/pm@2.26.2) + '@eslint/js': + specifier: ^9.39.1 + version: 9.39.1 '@floating-ui/dom': specifier: ^1.7.1 version: 1.7.4 @@ -654,6 +657,10 @@ packages: resolution: {integrity: sha512-jaS+NJ+hximswBG6pjNX0uEJZkrT0zwpVi3BA3vX22aFGjJjmgSTSmPpZCRKmoBL5VY/M6p0xsSJx7rk7sy5gg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@9.39.1': + resolution: {integrity: sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/object-schema@2.1.6': resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3799,6 +3806,8 @@ snapshots: '@eslint/js@9.37.0': {} + '@eslint/js@9.39.1': {} + '@eslint/object-schema@2.1.6': {} '@eslint/plugin-kit@0.4.0': diff --git a/src/lib/admin/useFormGuards.svelte.ts b/src/lib/admin/useFormGuards.svelte.ts index 49c2325..0d84759 100644 --- a/src/lib/admin/useFormGuards.svelte.ts +++ b/src/lib/admin/useFormGuards.svelte.ts @@ -6,7 +6,7 @@ export function useFormGuards(autoSave: AutoSaveStore | null) if (!autoSave) return // No guards needed for create mode // Navigation guard: flush autosave before route change - beforeNavigate(async (navigation) => { + beforeNavigate(async (_navigation) => { // If already saved, allow navigation immediately if (autoSave.status === 'saved') return diff --git a/src/lib/components/Avatar.svelte b/src/lib/components/Avatar.svelte index d5a982d..304498d 100644 --- a/src/lib/components/Avatar.svelte +++ b/src/lib/components/Avatar.svelte @@ -1,5 +1,5 @@