brackt/app/services
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
simulations Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
standings-sync Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
bracket-simulator.ts Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
discord.ts Refactor standings notifications to show only changed teams (#182) 2026-03-19 15:52:57 -07:00
ev-calculator.ts User/chris/ev f1 framework (#93) 2026-03-09 15:34:31 -07:00
icm-calculator.ts Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00
probability-engine.ts feat: implement Expected Value System with ICM probability calculator 2025-11-17 22:19:46 -08:00
probability-updater.ts Fix no-non-null-assertion lint violations and promote to error 2026-03-21 10:48:48 -07:00