Skip to content

fix(lint): force-ignore output.ts from Biome type analysis (200k limit) - #1536

Merged
betegon merged 1 commit into
mainfrom
fix/lint-biome-ignore-output
Sep 4, 2026
Merged

fix(lint): force-ignore output.ts from Biome type analysis (200k limit)#1536
betegon merged 1 commit into
mainfrom
fix/lint-biome-ignore-output

Conversation

@betegon

@betegon betegon commented Sep 4, 2026

Copy link
Copy Markdown
Member

Problem

Lint & Typecheck fails on an internal Biome error, with no real lint violation in the changed code:

src/lib/formatters/output.ts  project  INTERNAL
  ! Biome encountered an unusually large amount of types which exceeded the limit of 200,000.

output.ts imports valibot's GenericSchema, whose recursive generic graph pushes Biome's project-mode type inference over its 200,000-type ceiling — the same internal Biome bug already handled for custom-ca.ts in this config (see the existing "!!src/lib/custom-ca.ts" force-ignore).

It surfaces non-deterministically: main passes by a hair, but the exact type count tips over on PR runners, so unrelated PRs fail this job identically — e.g. #1499, #1501, and #1535. Re-running does not clear it (deterministic per branch state).

Fix

Force-ignore src/lib/formatters/output.ts the same way as custom-ca.ts, until Biome raises/fixes the limit.

"!!src/lib/custom-ca.ts",
"!!src/lib/formatters/output.ts"

Verification

pnpm run lint (the CI invocation) now passes:

Checked 1025 files in 3s. No fixes applied.   (exit 0)

Unblocks #1535 (and the other PRs above) once merged. Trade-off is the same one already accepted for custom-ca.ts: output.ts (a leaf formatter) is skipped by Biome; it stays covered by tsc.

🤖 Generated with Claude Code

output.ts trips Biome's project-mode type-inference limit (unusually large amount of types which exceeded the limit of 200,000) once valibot's GenericSchema graph is pulled in — the same internal Biome bug already handled for custom-ca.ts. It surfaces non-deterministically: main passes by a hair, but unrelated PRs trip it (e.g. #1499, #1501, #1535), failing Lint & Typecheck with no real lint violation. Force-ignore it the same way as custom-ca.ts; Biome now checks 1025 files with no errors. output.ts stays covered by tsc.

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

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
cli Ready Ready Preview Sep 4, 2026 4:43pm UTC

Request Review

@github-actions github-actions Bot added the risk: low PR risk score: low label Sep 4, 2026
@betegon
betegon merged commit 02f6e8d into main Sep 4, 2026
29 checks passed
@betegon
betegon deleted the fix/lint-biome-ignore-output branch September 4, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant