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> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| bracket-templates.ts | ||
| color-hash.ts | ||
| date-utils.ts | ||
| draft-eligibility.ts | ||
| draft-order.ts | ||
| draft-timer.ts | ||
| normalize-team-name.ts | ||
| owner-map.ts | ||
| scoring-types.ts | ||
| season-helpers.server.ts | ||
| standings-display.ts | ||
| utils.ts | ||