Skip to content

fix: resolve CI lint and typecheck failures#72

Merged
kraenhansen merged 1 commit into
mainfrom
fix/ci-lint-typecheck
May 11, 2026
Merged

fix: resolve CI lint and typecheck failures#72
kraenhansen merged 1 commit into
mainfrom
fix/ci-lint-typecheck

Conversation

@kraenhansen

@kraenhansen kraenhansen commented Apr 29, 2026

Copy link
Copy Markdown
Member

Summary

  • TypeScript error: The [[...slug]] optional catch-all route in app/(app)/llm/[[...slug]]/route.ts typed slug as string[] but it can be undefined — fixed by marking it optional (slug?: string[])
  • Broken next lint: Next.js 16 removed the next lint command. Updated the lint script to use eslint . directly
  • ESLint config upgrade: Upgraded eslint-config-next from 15.x to 16.x (matching Next.js 16) and rewrote eslint.config.mjs to use native flat config instead of the FlatCompat wrapper. New react-hooks v7 rules are disabled until the codebase is ready to adopt them (tracked in Enable new react-hooks v7 lint rules and lint scripts directory #73)
  • Cleanup: Removed unused @eslint/eslintrc and @typescript-eslint/parser dev dependencies

Test plan

  • pnpm typecheck passes (0 errors)
  • pnpm lint passes (0 errors, warnings only)
  • pnpm format:check passes
  • CI workflow passes on this branch

🤖 Generated with Claude Code

- Fix TypeScript error in optional catch-all route by marking slug as optional
- Upgrade eslint-config-next from 15.x to 16.x for Next.js 16 compatibility
- Replace broken `next lint` command with direct `eslint` invocation
- Rewrite eslint.config.mjs to use native flat config (drop FlatCompat)
- Remove unused @eslint/eslintrc and @typescript-eslint/parser deps

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

vercel Bot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ui Ready Ready Preview, Comment Apr 29, 2026 0:58am

Request Review

@kraenhansen kraenhansen self-assigned this Apr 30, 2026
@kraenhansen kraenhansen merged commit eb47b2e into main May 11, 2026
5 checks passed
@kraenhansen

Copy link
Copy Markdown
Member Author

Been waiting for review for some time and this seems safe to merge 👍 Please review in retrospect if that's not the case.

@louisjoecodes

Copy link
Copy Markdown
Collaborator

Looks great sir, appreciate this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants