Join the discussion on Telegram
Why this matters
Two cheap strictness wins missing from frontend/tsconfig.json:
noImplicitReturns: true — catches functions where some paths return and others don't (e.g. the various switch statements in useStreamEvents, dashboard-view's renderContent which currently relies on a trailing return)
noFallthroughCasesInSwitch: true — catches the next missing break before it ships
Both are documented as recommended in the same \"// Style Options\" block of backend/tsconfig.json (currently commented out there too — could be a follow-up for backend).
Acceptance criteria
Files to touch
Out of scope
- Backend tsconfig tightening (separate issue if wanted)
Join the discussion on Telegram
Why this matters
Two cheap strictness wins missing from
frontend/tsconfig.json:noImplicitReturns: true— catches functions where some paths return and others don't (e.g. the various switch statements inuseStreamEvents,dashboard-view'srenderContentwhich currently relies on a trailing return)noFallthroughCasesInSwitch: true— catches the next missingbreakbefore it shipsBoth are documented as recommended in the same
\"// Style Options\"block ofbackend/tsconfig.json(currently commented out there too — could be a follow-up for backend).Acceptance criteria
frontend/tsconfig.jsonnpm run buildpassesFiles to touch
frontend/tsconfig.jsonOut of scope