- Add app/lib/logger.ts: dev passes through to console; prod routes errors to Sentry.captureException and warnings to Sentry.captureMessage, with extra context preserved. Uses captureMessage (not captureException) for string-only args to avoid fabricated stack traces. - Add server/logger.ts: dev passes through; prod silences log/info but keeps warn/error on stderr (Sentry not initialized in that process). - Replace all console.* calls across 44 app files and 4 server files. - Upgrade no-console from warn → error in oxlint; exempt logger files and scripts/** via overrides. - Add typescript/no-inferrable-types rule; fix violations in services and simulators. Exempt test files (intentional string widening for switch/if tests would break under literal type inference). 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 | ||
| logger.ts | ||
| normalize-team-name.ts | ||
| owner-map.ts | ||
| scoring-types.ts | ||
| season-helpers.server.ts | ||
| standings-display.ts | ||
| utils.ts | ||