fix: strip and re-add eslint-disable comments on correct lines, fix stray > in NavBar
Lint & Vuln Scan / Go vulnerabilities (push) Successful in 22s
Lint & Vuln Scan / Frontend lint & types (push) Failing after 29s

This commit is contained in:
2026-06-25 18:19:19 +01:00
parent 7bb017d6b4
commit bce26dce2a
3 changed files with 10 additions and 12 deletions
@@ -135,7 +135,6 @@
<a href={link.href} class="font-medium text-gray-800 hover:text-primary" <a href={link.href} class="font-medium text-gray-800 hover:text-primary"
>{link.label}</a >{link.label}</a
><!-- eslint-enable svelte/no-navigation-without-resolve --> ><!-- eslint-enable svelte/no-navigation-without-resolve -->
>
{/if} {/if}
{/if} {/if}
{/each} {/each}
+5 -6
View File
@@ -92,11 +92,11 @@
let userData = $state<User | null>(null); let userData = $state<User | null>(null);
let loadingUser = $state(true); let loadingUser = $state(true);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
let stamps = $state(0); let stamps = $state(0);
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
let pendingRedemption = $state(false); let pendingRedemption = $state(false);
let uploadingPic = $state(false); let uploadingPic = $state(false);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function getStampPath(slotNum: number): string { function getStampPath(slotNum: number): string {
const petals = 7 + (slotNum % 4); // 7, 8, 9, 10 petals const petals = 7 + (slotNum % 4); // 7, 8, 9, 10 petals
@@ -244,6 +244,7 @@
? 'This card has already expired' ? 'This card has already expired'
: buyNewCardCVC.length > 0 && buyNewCardCVC.length < 3 : buyNewCardCVC.length > 0 && buyNewCardCVC.length < 3
? 'CVC must be at least 3 digits' ? 'CVC must be at least 3 digits'
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
: null : null
); );
@@ -727,13 +728,13 @@
let editingPhone = $state(false); let editingPhone = $state(false);
let phoneInput = $state(''); let phoneInput = $state('');
let phoneError = $state(''); let phoneError = $state('');
// eslint-disable-next-line @typescript-eslint/no-unused-vars
let savingPhone = $state(false); let savingPhone = $state(false);
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
// Phone validation (UK format) // Phone validation (UK format)
function validatePhone(phone: string): boolean { function validatePhone(phone: string): boolean {
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
return isValidUKPhone(phone); return isValidUKPhone(phone);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} }
function formatPhoneInput(value: string): string { function formatPhoneInput(value: string): string {
@@ -1237,7 +1238,6 @@
if (response.ok) { if (response.ok) {
toast.success('Account deleted successfully', { id: loadingToast }); toast.success('Account deleted successfully', { id: loadingToast });
authStore.logout(); authStore.logout();
// eslint-disable-next-line svelte/no-navigation-without-resolve
goto('/'); goto('/');
} else { } else {
const text = await response.text(); const text = await response.text();
@@ -2600,7 +2600,6 @@
<p class="mb-3 text-sm text-gray-600"> <p class="mb-3 text-sm text-gray-600">
View and export all personal data we hold about you View and export all personal data we hold about you
</p> </p>
// eslint-disable-next-line svelte/no-navigation-without-resolve
<Button onclick={() => goto('/gdpr')} variant="outline"> <Button onclick={() => goto('/gdpr')} variant="outline">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
+5 -5
View File
@@ -93,6 +93,8 @@
email_enabled: boolean; email_enabled: boolean;
sms_enabled: boolean; sms_enabled: boolean;
browser_push_enabled: boolean; browser_push_enabled: boolean;
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
updated_at: string; updated_at: string;
}>; }>;
saved_cards?: Array<{ saved_cards?: Array<{
@@ -207,9 +209,7 @@
return; return;
} }
if (!authStore.isAuthenticated) { if (!authStore.isAuthenticated) {
// eslint-disable-next-line svelte/no-navigation-without-resolve
pageState = 'unauthorized'; pageState = 'unauthorized';
// eslint-disable-next-line svelte/no-navigation-without-resolve
goto('/login', { replaceState: true }); goto('/login', { replaceState: true });
return; return;
} }
@@ -244,9 +244,9 @@
} else { } else {
const text = await res.text(); const text = await res.text();
errorMessage = `Failed to fetch data (${res.status}): ${text}`; errorMessage = `Failed to fetch data (${res.status}): ${text}`;
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
pageState = 'error'; pageState = 'error';
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) { } catch (e) {
errorMessage = 'Network error — could not connect to server.'; errorMessage = 'Network error — could not connect to server.';
pageState = 'error'; pageState = 'error';
@@ -510,14 +510,12 @@
<p class="mb-6 text-sm text-gray-500">{errorMessage}</p> <p class="mb-6 text-sm text-gray-500">{errorMessage}</p>
<div class="flex gap-3"> <div class="flex gap-3">
<Button onclick={fetchGdprData}>Try Again</Button> <Button onclick={fetchGdprData}>Try Again</Button>
// eslint-disable-next-line svelte/no-navigation-without-resolve
<Button onclick={() => goto('/account')} variant="outline">Back to Account</Button> <Button onclick={() => goto('/account')} variant="outline">Back to Account</Button>
</div> </div>
</div> </div>
{:else if pageState === 'loaded' && gdprData} {:else if pageState === 'loaded' && gdprData}
<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">
// eslint-disable-next-line svelte/no-navigation-without-resolve
<div> <div>
<button <button
onclick={() => goto('/account')} onclick={() => goto('/account')}
@@ -731,9 +729,11 @@
{/if} {/if}
<div> <div>
<span class="text-xs text-gray-400">Privacy Policy Consent</span> <span class="text-xs text-gray-400">Privacy Policy Consent</span>
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
<p class="text-sm"> <p class="text-sm">
{gdprData.user_profile.privacy_policy_and_terms_consent {gdprData.user_profile.privacy_policy_and_terms_consent
? 'Accepted' ? 'Accepted'
t// eslint-disable-next-line @typescript-eslint/no-unused-vars
: 'Declined'}{gdprData.user_profile.policy_consent_updated_at : 'Declined'}{gdprData.user_profile.policy_consent_updated_at
? ' — ' + fmtDateTime(gdprData.user_profile.policy_consent_updated_at) ? ' — ' + fmtDateTime(gdprData.user_profile.policy_consent_updated_at)
: ''} : ''}