feat: enable eslint in ci

This commit is contained in:
Stavros
2025-10-31 16:13:51 +02:00
parent 330c7aa8f1
commit 5f7e89c330
4 changed files with 22 additions and 5 deletions

View File

@@ -29,10 +29,10 @@ jobs:
run: | run: |
echo testing > internal/assets/version echo testing > internal/assets/version
- name: Build frontend - name: Lint frontend
run: | run: |
cd frontend cd frontend
bun run build bun run lint
- name: Copy frontend - name: Copy frontend
run: | run: |

View File

@@ -9,7 +9,7 @@ export const isValidUrl = (url: string) => {
try { try {
new URL(url); new URL(url);
return true; return true;
} catch (e) { } catch {
return false; return false;
} }
}; };

View File

@@ -76,7 +76,14 @@ export const ContinuePage = () => {
clearTimeout(auto); clearTimeout(auto);
clearTimeout(reveal); clearTimeout(reveal);
}; };
}, []); }, [
handleRedirect,
isAllowedRedirectProto,
isHttpsDowngrade,
isLoggedIn,
isTrustedRedirectUri,
isValidRedirectUri,
]);
if (!isLoggedIn) { if (!isLoggedIn) {
return ( return (

View File

@@ -119,6 +119,8 @@ export const LoginPage = () => {
!isLoggedIn && !isLoggedIn &&
redirectUri redirectUri
) { ) {
// Not sure of a better way to do this
// eslint-disable-next-line react-hooks/set-state-in-effect
setOauthAutoRedirectHandover(true); setOauthAutoRedirectHandover(true);
oauthMutation.mutate(oauthAutoRedirect); oauthMutation.mutate(oauthAutoRedirect);
redirectButtonTimer.current = window.setTimeout(() => { redirectButtonTimer.current = window.setTimeout(() => {
@@ -126,7 +128,15 @@ export const LoginPage = () => {
}, 5000); }, 5000);
} }
} }
}, []); }, [
isMounted,
oauthProviders.length,
providers,
isLoggedIn,
redirectUri,
oauthAutoRedirect,
oauthMutation,
]);
useEffect( useEffect(
() => () => { () => () => {