brackt/app/routes
Chris Parsons e2b178221a
Add oxlint linting setup with zero errors (#194)
* Add oxlint and fix all lint errors

- Install oxlint, add .oxlintrc.json with rules for TypeScript/React
- Add npm run lint / lint:fix scripts
- Add Claude PostToolUse hook to run oxlint on every edited file
- Fix 101 errors: unused vars/imports, eqeqeq, prefer-const, no-new-array
- Fix no-array-index-key (use stable keys or suppress positional cases)
- Fix exhaustive-deps missing dependency in useEffect
- Promote exhaustive-deps and no-array-index-key to errors
- Fix Map.get() !== null bug in $leagueId.server.ts (should be !== undefined)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fix no-explicit-any warnings and upgrade tsconfig to ES2023

- Replace all `any` types with proper types or `unknown` across ~20 files
- Add typed socket payload interfaces in draft route and useDraftSocket
- Use any[] with eslint-disable for socket.io callbacks (legitimate escape hatch)
- Bump all tsconfigs from ES2022 → ES2023 to support toSorted/toReversed
- Fix cascading type errors uncovered by removing any: Map.get narrowing,
  participant relation types, ChartDataPoint, Partial<NewSeason> indexing
- Add ParticipantResultWithParticipant type to participant-result model
- Fix test fixtures to match updated interfaces (DraftCell, ParticipantResult)
- Fix duplicate getQPStandings import in sportsSeasonId.server.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Promote no-explicit-any to error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 09:44:05 -07:00
..
api Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
leagues Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
teams feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin._index.tsx Add "Games to Score" widget to admin dashboard (#183) 2026-03-19 19:25:37 -07:00
admin.data-sync.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.participants.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.sports-seasons.$id.events.$eventId.bracket.server.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.events.$eventId.bracket.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.events.$eventId.server.ts Add event_starts_at timestamp to scoring events for sub-day ordering (#146) 2026-03-15 10:22:42 -07:00
admin.sports-seasons.$id.events.$eventId.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.events.server.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.events.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.expected-values.server.ts Add NCAAM and NCAAW bracket Monte Carlo simulators (#150) 2026-03-15 23:31:47 -07:00
admin.sports-seasons.$id.expected-values.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.futures-odds.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.participants.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.regular-standings.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.simulate.tsx Recalculate league standings after EV simulation updates (#186) 2026-03-20 14:39:05 -07:00
admin.sports-seasons.$id.standings.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.$id.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.new.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.sports-seasons.tsx Add isDraftable toggle to sport seasons (#165) (#178) 2026-03-18 22:40:19 -07:00
admin.sports.$id.tsx Add NHL playoff simulator and fix simulator dropdown (#166) 2026-03-18 01:23:53 -07:00
admin.sports.new.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.sports.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.standings-snapshots.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
admin.templates.$id.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.templates.new.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.templates.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
admin.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00
api.admin.export-sports-data.ts feat: add admin routes and checkbox component for sports management 2025-10-12 21:54:49 -07:00
home.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
how-to-play.tsx Add rules page, rewrite how-to-play, and fix scoring display (#20) 2026-02-21 21:58:51 -08:00
i.$inviteCode.tsx Optimize user data fetching with batch queries and centralize display name logic (#176) 2026-03-18 16:46:07 -07:00
rules.tsx Add rules page, rewrite how-to-play, and fix scoring display (#20) 2026-02-21 21:58:51 -08:00
test-socket.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
user-profile.tsx feat: add meta title to all route pages (#109) 2026-03-10 12:10:52 -07:00