fix(lint): replace explicit-any types + unused-expressions ternaries

Five files, all stylistic:

- useFlowPilotSession.ts: typed the axios error shape with a narrow
  inline type instead of \`as any\`.
- FlowPilotSessionPage.tsx: same — typed location.state once, then
  destructured.
- ScriptBuilderTab.tsx: handleViewScript was a placeholder no-op;
  declared the args properly with \`void script; void filename\` so the
  signature matches ScriptBuilderChatProps without no-unused-vars
  firing.
- TicketsPage.tsx: replaced 8 ternaries-as-statements (\`x ? f() : g()\`)
  with proper if/else blocks. Same control flow, satisfies
  no-unused-expressions, and reads better in the URL-param update paths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 02:32:57 -04:00
parent 857d73e3d0
commit b7f8e70be2
4 changed files with 39 additions and 15 deletions

View File

@@ -165,7 +165,9 @@ export function ScriptBuilderTab({
// onViewScript is required by ScriptBuilderChat — provide a no-op for now
// (inline preview is a future extension).
const handleViewScript = (_script: string, _filename: string | null) => {
const handleViewScript = (script: string, filename: string | null) => {
void script
void filename
// Future: open inline preview panel
}