fix: reposition eslint-disable comments for goto() calls and any types
Lint & Vuln Scan / Go vulnerabilities (push) Successful in 23s
Lint & Vuln Scan / Frontend lint & types (push) Failing after 31s

This commit is contained in:
2026-06-25 17:54:34 +01:00
parent fc26f9524a
commit ac24d3f990
3 changed files with 5 additions and 3 deletions
@@ -156,8 +156,8 @@
name: group.name, name: group.name,
description: group.description, description: group.description,
weekStarts: group.weekStarts || [], weekStarts: group.weekStarts || [],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
hours: hours:
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(group.hours as any[])?.map( (group.hours as any[])?.map(
(h: { (h: {
id: number; id: number;
+3
View File
@@ -1241,6 +1241,8 @@
toast.success('Account deleted successfully', { id: loadingToast }); toast.success('Account deleted successfully', { id: loadingToast });
// eslint-disable-next-line svelte/no-navigation-without-resolve // eslint-disable-next-line svelte/no-navigation-without-resolve
authStore.logout(); authStore.logout();
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
goto('/'); goto('/');
} else { } else {
const text = await response.text(); const text = await response.text();
@@ -2601,6 +2603,7 @@
<div> <div>
<h3 class="mb-2 text-sm font-semibold">Data Privacy</h3> <h3 class="mb-2 text-sm font-semibold">Data Privacy</h3>
<p class="mb-3 text-sm text-gray-600"> <p class="mb-3 text-sm text-gray-600">
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve --> <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
View and export all personal data we hold about you View and export all personal data we hold about you
</p> </p>
+1 -2
View File
@@ -208,7 +208,7 @@
} }
if (!authStore.isAuthenticated) { if (!authStore.isAuthenticated) {
pageState = 'unauthorized'; pageState = 'unauthorized';
// eslint-disable-next-line svelte/no-navigation-without-resolve <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
goto('/login', { replaceState: true }); goto('/login', { replaceState: true });
return; return;
} }
@@ -517,7 +517,6 @@
<div class="print-area"> <div class="print-area">
<div class="mb-6 flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center"> <div class="mb-6 flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center">
<div> <div>
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
<button <button
onclick={() => goto('/account')} onclick={() => goto('/account')}
class="mb-2 inline-flex items-center gap-1 text-sm text-gray-500 hover:text-gray-900" class="mb-2 inline-flex items-center gap-1 text-sm text-gray-500 hover:text-gray-900"