fix: resolve eslint warnings and error
Remove unused eslint-disable directives in BookingCreateModal and GDPR page. Rename isMobile to _isMobile to match allowed unused vars pattern. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -145,8 +145,6 @@
|
|||||||
!customServiceErrors.duration_minutes &&
|
!customServiceErrors.duration_minutes &&
|
||||||
!customServiceErrors.minimum_age_required
|
!customServiceErrors.minimum_age_required
|
||||||
);
|
);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
function toggleCustomForm(show: boolean) {
|
function toggleCustomForm(show: boolean) {
|
||||||
showCustomCreateForm = show;
|
showCustomCreateForm = show;
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
settings: 'expanded'
|
settings: 'expanded'
|
||||||
});
|
});
|
||||||
|
|
||||||
let isMobile = $state(false);
|
let _isMobile = $state(false);
|
||||||
|
|
||||||
// =============== Lifted Data Fetching ===============
|
// =============== Lifted Data Fetching ===============
|
||||||
// Fetch shared data once at page level to avoid duplicate API calls
|
// Fetch shared data once at page level to avoid duplicate API calls
|
||||||
@@ -95,10 +95,10 @@
|
|||||||
if (!browser) return;
|
if (!browser) return;
|
||||||
|
|
||||||
const mql = window.matchMedia('(max-width: 767px)');
|
const mql = window.matchMedia('(max-width: 767px)');
|
||||||
isMobile = mql.matches;
|
_isMobile = mql.matches;
|
||||||
|
|
||||||
function handleChange(e: MediaQueryListEvent) {
|
function handleChange(e: MediaQueryListEvent) {
|
||||||
isMobile = e.matches;
|
_isMobile = e.matches;
|
||||||
for (const key in sectionState) {
|
for (const key in sectionState) {
|
||||||
sectionState[key as keyof typeof sectionState] = e.matches ? 'collapsed' : 'expanded';
|
sectionState[key as keyof typeof sectionState] = e.matches ? 'collapsed' : 'expanded';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,9 +252,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
|
||||||
function handleGotoAccount() {
|
function handleGotoAccount() {
|
||||||
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
|
||||||
goto('/account');
|
goto('/account');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user