Skip to content

chore: exclude generated changelog audit ledgers from Biome - #128

Merged
nibzard merged 1 commit into
mainfrom
niko/biome-ignore-changelog-audit
Sep 18, 2026
Merged

nibzard merged 1 commit into
mainfrom
niko/biome-ignore-changelog-audit

Conversation

@nibzard

@nibzard nibzard commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

The changelog generator writes scripts/changelog/audit/<n>.json with expanded arrays. Biome's formatter wants them collapsed, so the lint job fails on every changelog draft PR until someone reformats the file by hand. It happened on #127 and will happen again on #37.

The ledger is a generated audit record that nobody edits, so it does not need to be formatted.

Change

One line in biome.json:

"includes": ["**", "!scripts/changelog/audit/**"]

Verification

  • Mis-formatted 036.json on purpose: Biome passes, and the file count drops 253 -> 252, so exactly one file is excluded.
  • Mis-formatted the sibling scripts/changelog/state.json: still caught, so the pattern is not too broad.
  • Full CI set green locally: biome check --error-on-warnings, spell, validate-links, typecheck.

🤖 Generated with Claude Code

The changelog generator writes scripts/changelog/audit/<n>.json with
expanded arrays that Biome's formatter rejects, so CI fails on every
changelog draft until someone reformats the file by hand. The ledger is
a generated record and no one edits it, so skip it in the formatter.
@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 18, 2026 3:28pm UTC

Request Review

@nibzard
nibzard merged commit 3615536 into main Sep 18, 2026
3 checks passed
@nibzard
nibzard deleted the niko/biome-ignore-changelog-audit branch September 18, 2026 15:33

This branch was successfully deployed

1 active deployment
Preview — 15fc7828 Deployed Sep 18, 2026 by vercel[bot]
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.

1 participant