Skip to content

fix(deps): downgrade typescript to 6 - #384

Merged
icco merged 5 commits into
mainfrom
fix/typescript-eslint-ts6-api
Nov 3, 2026
Merged

icco merged 5 commits into
mainfrom
fix/typescript-eslint-ts6-api

Conversation

@icco

@icco icco commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Why

TypeScript 7 ships no compiler API, so typescript-eslint crashed and pnpm dev failed before starting Next. Downgrading to TypeScript 6 (as writing uses) restores linting; the two lint errors it was hiding are fixed.

Risks

Dependabot now skips TypeScript major updates; remove that ignore once typescript-eslint supports TS 7 (typescript-eslint/typescript-eslint#10940).

icco and others added 3 commits November 3, 2026 17:04
TypeScript 7 ships no compiler API, so typescript-eslint crashed and
took pnpm dev with it. Follow the TS 7 release notes: alias typescript
to @typescript/typescript6 and keep tsc on 7 via @typescript/native.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain in the TypeScript compatibility and related configuration changes.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

This PR addresses the TypeScript compiler API incompatibility that prevents ESLint—and therefore pnpm dev—from starting. It gives API consumers TypeScript 6 while retaining TypeScript 7 for the command-line compiler.

Changes:

  • Add side-by-side TypeScript aliases and update dependency resolutions.
  • Tighten the content-collections import-sorting pattern and remove a wiki-page lint suppression.
  • Add Next.js-specific guidance for coding agents.
File Description
src/​app/​wiki/​[...slug]/​page.tsx Remove the react-hooks/static-components suppression comment.
pnpm-lock.yaml Resolve API consumers to TypeScript 6 and retain TypeScript 7.
package.json Configure aliases for the TypeScript 6 API and TypeScript 7 compiler.
eslint.config.mjs Match only the exact content-collections import in its sorting group.
AGENTS.md Add guidance to consult bundled Next.js documentation.

Review effort: Balanced

Drop the side-by-side aliases; TypeScript 6 has the compiler API that
typescript-eslint needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@icco icco changed the title fix(deps): give typescript-eslint the typescript 6 api fix(deps): downgrade typescript to 6 Nov 3, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@icco
icco merged commit 00e9aa6 into main Nov 3, 2026
6 checks passed
@icco
icco deleted the fix/typescript-eslint-ts6-api branch November 3, 2026 17:39
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