Skip to content

[Frontend] tsconfig.json — enable noImplicitReturns and noFallthroughCasesInSwitch #651

@ogazboiz

Description

@ogazboiz

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

  • Add both flags to frontend/tsconfig.json
  • Fix anything the checker surfaces
  • npm run build passes

Files to touch

  • frontend/tsconfig.json

Out of scope

  • Backend tsconfig tightening (separate issue if wanted)

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendFrontend related tasksgood first issueGood for newcomersrefactorRefactoring existing code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions