From bcdb2f9540871fedded4b59b70663e7d23a89c71 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 17 Apr 2025 15:29:55 +0200 Subject: [PATCH] fix(frontend): actually show eslint errors in vscode, fix eslint errors --- Foxnouns.Frontend/.vscode/settings.json | 3 ++- .../src/lib/components/GlobalNotice.svelte | 1 + .../lib/components/admin/AuditLogEntryCard.svelte | 1 + .../components/admin/ClosedReportAuditLog.svelte | 1 + Foxnouns.Frontend/src/lib/i18n/locales/en.json | 3 ++- .../src/routes/admin/reports/[id]/+page.svelte | 1 + .../src/routes/page/[page]/+page.svelte | 1 + .../src/routes/settings/prefs/+page.svelte | 14 +++++++++++++- 8 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Foxnouns.Frontend/.vscode/settings.json b/Foxnouns.Frontend/.vscode/settings.json index 5703e7f..c5d12a5 100644 --- a/Foxnouns.Frontend/.vscode/settings.json +++ b/Foxnouns.Frontend/.vscode/settings.json @@ -4,5 +4,6 @@ "i18n-ally.localesPaths": ["src/lib/i18n", "src/lib/i18n/locales"], "i18n-ally.keystyle": "nested", "explorer.sortOrder": "filesFirst", - "explorer.compactFolders": false + "explorer.compactFolders": false, + "eslint.validate": ["javascript", "javascriptreact", "svelte"] } diff --git a/Foxnouns.Frontend/src/lib/components/GlobalNotice.svelte b/Foxnouns.Frontend/src/lib/components/GlobalNotice.svelte index 3d1c718..c8a55f1 100644 --- a/Foxnouns.Frontend/src/lib/components/GlobalNotice.svelte +++ b/Foxnouns.Frontend/src/lib/components/GlobalNotice.svelte @@ -34,6 +34,7 @@ {#if renderNotice}