Skip to content

chore(lint): migrate biome config to 2.5.3, suppress void-union warnings#98

Merged
wmadden-electric merged 1 commit into
mainfrom
fix/biome-2.5.3-lint
Jul 16, 2026
Merged

chore(lint): migrate biome config to 2.5.3, suppress void-union warnings#98
wmadden-electric merged 1 commit into
mainfrom
fix/biome-2.5.3-lint

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

Cleans up the lint diagnostics introduced around the Biome 2.5.2→2.5.3 dev-deps bump (01dbc62, #86).

What changed

  • biome.jsonc — ran biome migrate --write; the only change is the $schema URL bumping to 2.5.3, which removes the deserialize diagnostic ("configuration schema version does not match the CLI version") that every lint run has opened with since the bump.
  • packages/0-framework/1-core/core/src/node.ts — suppressed the four noConfusingVoidType warnings with per-site biome-ignore comments (the existing idiom in this file). The ModuleOutputs<E> | void return type is intentional: void accepts module bodies with no return statement (TypeScript infers void for those), which | undefined would reject. So the rule's auto-fix would be a breaking API change.

Why CI stayed green on the dependabot merge

Nothing slipped through — pnpm lint never actually failed. Both diagnostics are below error level: the schema mismatch is an info and the four noConfusingVoidType hits are warnings, and biome check exits 0 unless there are error-level diagnostics. I verified on unmodified origin/main (9c7f4d6): pnpm lint exits 0 under 2.5.3. The noConfusingVoidType warnings also aren't new — running Biome 2.5.2 on the same tree reports the identical four; the only diagnostic 2.5.3 added is the info-level schema mismatch. This PR just removes the noise.

Verification

  • pnpm lint exits 0; zero deserialize/noConfusingVoidType diagnostics remain (warnings 18→14, infos 34→33).
  • pnpm --filter @internal/core typecheck passes (the node.ts change is comments-only).

🤖 Generated with Claude Code

@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@prisma/composer@98
npm i https://pkg.pr.new/@prisma/composer-prisma-cloud@98

commit: 3504399

The dev-deps bump to Biome 2.5.3 (01dbc62) left biome.jsonc declaring the
2.5.2 schema, so every lint run opened with a deserialize diagnostic. Ran
`biome migrate --write`, which only bumps the $schema URL.

Also suppress the four noConfusingVoidType warnings in node.ts. The
`ModuleOutputs<E> | void` return type is intentional: void accepts module
bodies with no return statement, which `| undefined` would reject. These
warnings predate the bump and never failed lint (biome check exits 0 on
warnings) — suppressing them just removes the noise.

Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@wmadden-electric
wmadden-electric merged commit 56da006 into main Jul 16, 2026
15 checks passed
@wmadden-electric
wmadden-electric deleted the fix/biome-2.5.3-lint branch July 16, 2026 12:37
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