Skip to content

style: enable Biome formatter and format the codebase - #54

Merged
diangogav merged 2 commits into
mainfrom
style/enable-biome-formatter
Jun 19, 2026
Merged

style: enable Biome formatter and format the codebase#54
diangogav merged 2 commits into
mainfrom
style/enable-biome-formatter

Conversation

@diangogav

Copy link
Copy Markdown
Owner

Summary

  • Enable Biome's formatter (tabs, lineWidth 100) and format the whole
    project — a pure formatting pass, no logic changes.
  • Wire scripts to biome check (lint + format) so formatting is enforced
    in CI and the pre-commit hook.
  • Add .git-blame-ignore-revs so 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 blame is protected.

Blame protection

The formatting commit hash is registered in .git-blame-ignore-revs.
GitHub honors this file automatically. Locally:

git config blame.ignoreRevsFile .git-blame-ignore-revs

Commits

  1. style: enable formatter + reformat (the big mechanical diff)
  2. chore: add the formatter hash to .git-blame-ignore-revs

Test plan

  • bun run build (tsc) — exit 0
  • bun test — 246 pass / 0 fail
  • bun run lint (biome check: lint + format) — exit 0
  • Formatting commit isolated from any logic change

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
@diangogav diangogav self-assigned this Jun 19, 2026
@diangogav
diangogav merged commit 9be209d into main Jun 19, 2026
1 check passed
@diangogav
diangogav deleted the style/enable-biome-formatter branch June 19, 2026 15:44
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