Skip to content

chore: pin Biome to 2.4.15 and clear auto-fixable lint debt#14

Merged
renezander030 merged 1 commit into
masterfrom
chore/fix-lint-pin-biome
May 31, 2026
Merged

chore: pin Biome to 2.4.15 and clear auto-fixable lint debt#14
renezander030 merged 1 commit into
masterfrom
chore/fix-lint-pin-biome

Conversation

@renezander030
Copy link
Copy Markdown
Owner

What

Clears the auto-fixable Biome lint debt and pins the Biome version so CI stays deterministic.

Changes

  • Pin @biomejs/biome to exact 2.4.15 (was ^2.4.15). A caret range lets a future patch silently change rule severities or import-sort behavior and break CI on unrelated PRs. The biome.json schema is already pinned to 2.4.15, so this just aligns the dependency.
  • Apply biome check --write --unsafe (27 fixes across 9 files), all mechanical and behavior-preserving:
    • isFinite(n) > Number.isFinite(n) (avoids global coercion)
    • parseInt(x) > parseInt(x, 10) (explicit radix)
    • string concat > template literals
    • manual null-guards > optional chaining
  • npm test stays green (113/113).

Left intentionally

The 11 remaining noAssignInExpressions warnings are all the idiomatic (x.y ??= []) nullish-assign pattern. They're already configured as warn (non-blocking) in biome.json, and rewriting them would only uglify the code. Left as-is — happy to disable that rule or refactor if you'd prefer.

Why now

Contributors running biome check --write --unsafe (or editors with fix-on-save) were getting ~9 unrelated files rewritten under them, which discouraged running the linter at all. With these landed, the linter is a clean no-op on untouched files.

Note: this does not touch assist/source/organizeImports enforcement — that's the one error-level check, and it correctly catches unsorted imports in new PRs.

Apply biome check --write --unsafe (27 mechanical fixes across 9 files:
Number.isFinite, parseInt radix, template literals, optional chaining)
and pin @biomejs/biome from ^2.4.15 to 2.4.15 so a future patch can't
shift rule severities and break CI on unrelated PRs. Tests: 113/113.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@renezander030 renezander030 merged commit 6bd94ef into master May 31, 2026
4 checks passed
@renezander030 renezander030 deleted the chore/fix-lint-pin-biome branch May 31, 2026 06:38
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