diff --git a/frontend/src/hooks.ts b/frontend/src/hooks.ts index 1203729..5b7f858 100644 --- a/frontend/src/hooks.ts +++ b/frontend/src/hooks.ts @@ -30,6 +30,7 @@ export async function getSession(event) { }); if (res.ok) { const json = await res.json(); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore // skipcq: JS-0295 user_email = json.email; } else { diff --git a/frontend/src/lib/play/join.svelte b/frontend/src/lib/play/join.svelte index 7d483ee..f044cb2 100644 --- a/frontend/src/lib/play/join.svelte +++ b/frontend/src/lib/play/join.svelte @@ -10,10 +10,11 @@ let hcaptchaSitekey = import.meta.env.VITE_HCAPTCHA; let hcaptcha = { - execute: async (_a, _b) => ({ response: '' }), - render: (_a, _b) => {} + execute: async (_a, _b) => ({ response: '' }), // eslint-disable-line @typescript-eslint/no-unused-vars + // eslint-disable-next-line @typescript-eslint/no-empty-function + render: (_a, _b) => {} // eslint-disable-line @typescript-eslint/no-unused-vars }; - let hcaptchaWidgetID: any; + let hcaptchaWidgetID; onMount(() => { if (browser) { @@ -32,6 +33,7 @@ if (browser) { hcaptcha = { execute: async () => ({ response: '' }), + // eslint-disable-next-line @typescript-eslint/no-empty-function render: () => {} }; } @@ -73,10 +75,7 @@ {#if game_pin === '' || game_pin.length <= 7}