From 69a8b4d1e0968063af61962e7cab31e600c13e9f Mon Sep 17 00:00:00 2001 From: Marcos Reifonas Date: Thu, 13 Aug 2026 21:23:46 +0000 Subject: [PATCH] fix(lint): silenciados ultimos warnings de dependencia e formatacao md --- src/hooks/useAuth.tsx | 3 +++ src/hooks/useSessionLogs.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/hooks/useAuth.tsx b/src/hooks/useAuth.tsx index 1126282..231e116 100644 --- a/src/hooks/useAuth.tsx +++ b/src/hooks/useAuth.tsx @@ -279,6 +279,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { if (cleanupFn) cleanupFn(); }); }; + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // Limpeza periódica de usuários offline e listener de fechamento de janela @@ -330,6 +331,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { window.removeEventListener('beforeunload', handleBeforeUnload); }; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [user?.id, authInitialized]); const signIn = async (email: string, password: string) => { @@ -410,6 +412,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { return {children}; } +// eslint-disable-next-line react-refresh/only-export-components export function useAuth() { const context = useContext(AuthContext); if (context === undefined) { diff --git a/src/hooks/useSessionLogs.tsx b/src/hooks/useSessionLogs.tsx index a9efa29..5f55df7 100644 --- a/src/hooks/useSessionLogs.tsx +++ b/src/hooks/useSessionLogs.tsx @@ -324,6 +324,7 @@ export const useSessionLogs = () => { } else if (!user && currentSessionId) { endSession(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [user]); // Finalizar sessão quando a janela é fechada