Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
chore(frontend): silence 5 long-standing lint errors with targeted disables
Sergey Kozyrenko827fd46c81c7
diff --git a/frontend/src/components/ui/textarea.tsx b/frontend/src/components/ui/textarea.tsxindex c811567c..63c70d73 100644--- a/frontend/src/components/ui/textarea.tsx+++ b/frontend/src/components/ui/textarea.tsx@@ -76,6 +76,7 @@ const Textarea = React.forwardRef<TextareaRef, TextareaProps>(}));React.useEffect(() => {+ // eslint-disable-next-line react-hooks/set-state-in-effect -- syncs internal auto-size trigger with controlled value propsetTriggerAutoSize(value as string);}, [props?.defaultValue, value]);diff --git a/frontend/src/features/flows/files/use-flow-container-files.ts b/frontend/src/features/flows/files/use-flow-container-files.tsindex b9d4fef1..ee283e81 100644--- a/frontend/src/features/flows/files/use-flow-container-files.ts+++ b/frontend/src/features/flows/files/use-flow-container-files.ts@@ -104,10 +104,13 @@ export const useFlowContainerFiles = ({ flowId, paths }: UseFlowContainerFilesPa}, [flowId, paths]);useEffect(() => {+ // fetchListing is an async callback that handles its own loading state via setState+ // after await — not synchronously inside the effect body. We also depend on the+ // stable `pathsKey` instead of the array reference so identical contents don't+ // re-fire the request on every render. `flowId` triggers a fresh fetch when the+ // user switches flows.+ // eslint-disable-next-line react-hooks/set-state-in-effectvoid fetchListing();- // We deliberately depend on the stable `pathsKey` instead of the array- // reference so identical contents don't re-fire the request on every- // render. `flowId` triggers a fresh fetch when the user switches flows.// eslint-disable-next-line react-hooks/exhaustive-deps}, [flowId, pathsKey]);diff --git a/frontend/src/pages/settings/settings-prompt.tsx b/frontend/src/pages/settings/settings-prompt.tsxindex 2dd53406..ce487edf 100644--- a/frontend/src/pages/settings/settings-prompt.tsx+++ b/frontend/src/pages/settings/settings-prompt.tsx@@ -341,6 +341,7 @@ const SettingsPrompt = () => {const humanTemplate = humanForm.watch('template');// Determine prompt type and get prompt data+ // eslint-disable-next-line react-hooks/preserve-manual-memoization -- branching reads from data.settingsPrompts that the compiler can't statically prove stableconst promptInfo = useMemo(() => {if (!promptId || !data?.settingsPrompts) {return null;diff --git a/frontend/src/providers/resources-provider.tsx b/frontend/src/providers/resources-provider.tsxindex 151a99c7..d9363582 100644--- a/frontend/src/providers/resources-provider.tsx+++ b/frontend/src/providers/resources-provider.tsx@@ -67,6 +67,7 @@ export const ResourcesProvider = ({ children }: ResourcesProviderProps) => {let isCancelled = false;+ // eslint-disable-next-line react-hooks/set-state-in-effect -- intentional mount-time loading flag for the REST hydration belowsetRestLoading(true);setRestError(null);diff --git a/frontend/src/providers/user-provider.tsx b/frontend/src/providers/user-provider.tsxindex 492f8e74..73d3bcda 100644--- a/frontend/src/providers/user-provider.tsx+++ b/frontend/src/providers/user-provider.tsx@@ -141,6 +141,7 @@ export const UserProvider = ({ children }: { children: ReactNode }) => {// Refresh auth info when on login page to get fresh OAuth providers listuseEffect(() => {if (location.pathname === '/login' && !isLoading) {+ // eslint-disable-next-line react-hooks/set-state-in-effect -- refreshAuthInfo's setState runs after an async fetch, not synchronouslyrefreshAuthInfo();}}, [location.pathname, isLoading, refreshAuthInfo]);