chore: Fix all remaining lint warnings

- Prefix unused catch error variables with underscore in AIChat.tsx and Alerts.tsx
- Reduced lint warnings from 8 to 0
- Clean lint output with no warnings or errors
This commit is contained in:
rcourtman 2025-12-13 11:05:08 +00:00
parent 3c0f4aa576
commit 75874687fb
2 changed files with 8 additions and 8 deletions

View file

@ -342,7 +342,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
description: m.description, description: m.description,
}))); })));
} }
} catch (e) { } catch (_e) {
// Silently fail - models will just not be selectable // Silently fail - models will just not be selectable
} }
}); });

View file

@ -2179,7 +2179,7 @@ function OverviewTab(props: {
if (runHistory && runHistory.length > 0 && runHistory[0].status !== 'healthy') { if (runHistory && runHistory.length > 0 && runHistory[0].status !== 'healthy') {
setShowRunHistory(true); setShowRunHistory(true);
} }
} catch (e) { } catch (_e) {
// AI patrol may not be enabled - silently fail // AI patrol may not be enabled - silently fail
} }
}; };
@ -2678,7 +2678,7 @@ function OverviewTab(props: {
await dismissFinding(finding.id, 'not_an_issue'); await dismissFinding(finding.id, 'not_an_issue');
showSuccess('Dismissed - AI will not raise this again'); showSuccess('Dismissed - AI will not raise this again');
fetchAiData(); fetchAiData();
} catch (err) { } catch (_err) {
showError('Failed to dismiss finding'); showError('Failed to dismiss finding');
} }
}} }}
@ -2695,7 +2695,7 @@ function OverviewTab(props: {
await dismissFinding(finding.id, 'expected_behavior', note || undefined); await dismissFinding(finding.id, 'expected_behavior', note || undefined);
showSuccess('Dismissed - AI will not raise this again'); showSuccess('Dismissed - AI will not raise this again');
fetchAiData(); fetchAiData();
} catch (err) { } catch (_err) {
showError('Failed to dismiss finding'); showError('Failed to dismiss finding');
} }
}} }}
@ -2711,7 +2711,7 @@ function OverviewTab(props: {
await dismissFinding(finding.id, 'will_fix_later'); await dismissFinding(finding.id, 'will_fix_later');
showSuccess('Acknowledged - AI will check again later'); showSuccess('Acknowledged - AI will check again later');
fetchAiData(); fetchAiData();
} catch (err) { } catch (_err) {
showError('Failed to dismiss finding'); showError('Failed to dismiss finding');
} }
}} }}
@ -2729,7 +2729,7 @@ function OverviewTab(props: {
await suppressFinding(finding.id); await suppressFinding(finding.id);
showSuccess('Suppressed - AI will never raise this again'); showSuccess('Suppressed - AI will never raise this again');
fetchAiData(); fetchAiData();
} catch (err) { } catch (_err) {
showError('Failed to suppress finding'); showError('Failed to suppress finding');
} }
} }
@ -2831,7 +2831,7 @@ function OverviewTab(props: {
setNewRuleCategory(''); setNewRuleCategory('');
setNewRuleDescription(''); setNewRuleDescription('');
fetchAiData(); fetchAiData();
} catch (err) { } catch (_err) {
showError('Failed to create rule'); showError('Failed to create rule');
} }
}} }}
@ -2889,7 +2889,7 @@ function OverviewTab(props: {
await deleteSuppressionRule(rule.id); await deleteSuppressionRule(rule.id);
showSuccess('Rule deleted'); showSuccess('Rule deleted');
fetchAiData(); fetchAiData();
} catch (err) { } catch (_err) {
showError('Failed to delete rule'); showError('Failed to delete rule');
} }
}} }}