brackt/app/routes/leagues
Chris Parsons 552fe28b99 Fix no-non-null-assertion lint violations and promote to error
Eliminates all 208 no-non-null-assertion warnings across 38 files.
Promotes typescript/no-non-null-assertion from warn to error in
.oxlintrc.json.

Fix patterns applied:
- Map.get(key)! after .has() check → extract with get() + null guard
- Map.get(key)! on pre-populated count maps → ?? 0 default
- .set(id, map.get(id)! + 1) increment → ?? 0 before adding
- participant1Id!/participant2Id! on DB matches → ?? "" fallback
- array.find()! in tests → guard + throw or expect().toBeDefined()
- bracketTemplateCache.get(id)! → null guard extract
- Various nullable field accesses → optional chain or ?? default

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 10:48:48 -07:00
..
__tests__ Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
$leagueId.draft-board.$seasonId.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
$leagueId.draft.$seasonId.tsx Fix no-shadow and consistent-function-scoping lint violations 2026-03-21 10:14:54 -07:00
$leagueId.server.ts Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
$leagueId.settings.tsx Fix no-shadow and consistent-function-scoping lint violations 2026-03-21 10:14:54 -07:00
$leagueId.sports-seasons.$sportsSeasonId.server.ts Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
$leagueId.sports-seasons.$sportsSeasonId.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
$leagueId.standings.$seasonId.teams.$teamId.tsx Simplify team breakdown page layout and fix code quality issues (#155) 2026-03-17 09:20:41 -07:00
$leagueId.standings.$seasonId.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
$leagueId.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
new.tsx Fix no-shadow and consistent-function-scoping lint violations 2026-03-21 10:14:54 -07:00