Files
botsmann/@fix_plan.md
T
g-butandClaude Opus 4.5 2e39380356 feat: add strict ESLint config and fix all lint issues
- Add .eslintrc.json with strict TypeScript and React rules
- Fix all unused imports and variables (prefix with _ or remove)
- Replace all `any` types with `unknown` or specific types
- Fix React hooks rule violations (conditional hooks, deps)
- Change console.log to console.info per project standards
- Add eslint-disable comments for legitimate img element uses
- Fix anonymous default exports
- Update package.json with ESLint 8 and proper lint scripts

Lint: 0 warnings, 0 errors
Build: passes successfully

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 16:47:56 +01:00

2.0 KiB

Task Plan & Priority Queue

Fix all TypeScript errors and ESLint warnings in Botsmann.

Status: ✅ COMPLETE

All type errors and lint warnings have been fixed. Build passes successfully.


Summary of Fixes

P0 - Type Errors (17 errors - FIXED)

AICaseAnalysis.tsx:

  • Fixed intake → _intake variable references
  • Added eslint-disable for intentional useEffect pattern

financial-advisor/page.tsx:

  • Fixed "emerald" color - changed to "green"

WorkspaceDashboard.tsx:

  • Fixed missing onFileVisibilityChange - added proper interfaces

navigation.ts:

  • Fixed LinkProps generic type issue

consultations.test.ts:

  • Installed node-mocks-http module

P1 - Lint Warnings (52 warnings - FIXED)

any type warnings (13 files):

  • Replaced all any types with proper types (unknown, specific interfaces)
  • Added TagValue type for Sentry monitoring
  • Fixed DataRoomDemo.tsx tab type with 'count' in tab check

React Hook issues:

  • Fixed conditional useEffect in MDXComponents.tsx
  • Fixed ref cleanup in Comments.tsx
  • Moved getAllIds inside useEffect in TableOfContents.tsx

Console statements:

  • Changed console.log to console.info in blog.ts

Unused variables:

  • Prefixed unused variables with _ across multiple files

<img> element warnings (6 files):

  • Added eslint-disable comments for legitimate uses (avatars, external images)

Other fixes:

  • Changed <a> to <Link> in Footer.tsx
  • Fixed anonymous default export in sampleData.ts
  • Added Jest globals to ESLint config

Verification

npm run lint    # ✅ Passes with --max-warnings 0
npm run build   # ✅ Completes successfully

Completed Tasks

  • Ralph setup initialized (2026-01-09)
  • Identified 17 type errors and 52 lint warnings
  • Fixed all P0 type errors (2026-01-11)
  • Fixed all P1 lint warnings (2026-01-11)
  • Build verified (2026-01-11)