style: enable Biome formatter and format the codebase - #54
Merged
Conversation
Enable Biome's formatter (tabs, lineWidth 100) and apply it across the project. Pure formatting pass — no logic changes — normalizing the previously inconsistent mix of tabs and spaces between files. Scripts now use `biome check` (lint + format) so the formatter is enforced both in CI (`bun run lint`) and the pre-commit hook. 100 files reformatted. Verified: tsc exits 0, 246 tests pass. A follow-up commit registers this hash in .git-blame-ignore-revs so git blame skips the bulk reformat.
Register the bulk-formatting commit in .git-blame-ignore-revs so `git blame` and GitHub's blame view skip it and keep attributing each line to its real author instead of the reformat. Enable it locally with: git config blame.ignoreRevsFile .git-blame-ignore-revs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
project — a pure formatting pass, no logic changes.
biome check(lint + format) so formatting is enforcedin CI and the pre-commit hook.
.git-blame-ignore-revsso the bulk reformat doesn't pollute blame.Why now
The project never had a formatter, so indentation was inconsistent
between files (some tabs, some spaces). Biome was already in place
from the linter migration, so enabling its formatter closes that gap.
Scope — this is large but mechanical
100 files reformatted (96 source + 4 config), +3928 / −3274. Every
change is whitespace/style only. Reviewing line-by-line is unnecessary;
the safety net is the verification below, and
git blameis protected.Blame protection
The formatting commit hash is registered in
.git-blame-ignore-revs.GitHub honors this file automatically. Locally:
Commits
style:enable formatter + reformat (the big mechanical diff)chore:add the formatter hash to.git-blame-ignore-revsTest plan
bun run build(tsc) — exit 0bun test— 246 pass / 0 failbun run lint(biome check: lint + format) — exit 0