Skip to content

chore: update Biome configuration for v2.6 - #584

Merged
bicstone merged 1 commit into
mainfrom
fix/biome-2.6-config
Nov 10, 2026
Merged

bicstone merged 1 commit into
mainfrom
fix/biome-2.6-config

Conversation

@bicstone

Copy link
Copy Markdown
Owner

背景

#578 で @biomejs/biome を 2.5.15 から 2.6.2 に上げました。Biome 2.6 は YAML と Markdown を既定でフォーマットするため、以降 main と依存更新 PR(#579 など)の pnpm run check がすべて失敗しています。

変更内容

  • biome migrate --write で $schema を 2.6.2 に更新
  • 生成ファイルの pnpm-lock.yaml を Biome の対象から除外(pnpm が書き戻すため、整形すると毎回差分が出る)
  • ビルド出力は force-ignore 構文(!!**/dist)で除外
  • biome check --write で workflow の YAML と Markdown を Biome の既定スタイルに整形
  • VS Code で Markdown と YAML を保存すると Prettier で整形され CI と競合するため、フォーマッタを Biome に変更

確認

ローカルで CI と同じ手順を実行し、すべて成功しました。

  • pnpm install --frozen-lockfile
  • pnpm run check
  • pnpm run build
  • pnpm run check:package

レビューで見てほしい点

  • README のコード例が Biome の embed フォーマットで書き換わっています。インデントがタブになり、JSX 式の末尾に ; が付きます。好みでなければ markdown.formatter.formatEmbeds: false で止められます。
  • CONTRIBUTING.md では、段落と番号付きリストの間の空行が Biome に削除されています。GitHub 上の表示は変わりません。
  • prettier は devDependencies に残しています。Markdown と YAML を Biome に移したので、現状ほぼ使われていません。削除するかは別途判断してください。

Generated by Claude Code

Biome 2.6 formats YAML and Markdown by default, which broke `pnpm run check`
on main after the upgrade to 2.6.2 (#578).

- Run `biome migrate` to update `$schema` to 2.6.2
- Exclude generated `pnpm-lock.yaml` from Biome
- Use force-ignore syntax (`!!**/dist`) for build output
- Apply Biome formatting to workflows and Markdown files
- Use Biome as the VS Code formatter for Markdown and YAML

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FQyF8E4NWCr8SLp4NUWK9x
Copilot AI balanced review requested due to automatic review settings November 10, 2026 13:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Biome configuration and related formatting updates.

No open issues 🎉

What changed in this PR

Aligns the repository’s formatting configuration with Biome 2.6.2 following #578, addressing check failures caused by newly enabled YAML and Markdown formatting.

Changes:

  • Updates the Biome schema and excludes build output and pnpm-lock.yaml.
  • Switches VS Code’s Markdown and YAML formatters to Biome.
  • Applies Biome formatting to documentation and workflows without changing workflow behavior.
File Description
README.md Formats embedded JSX examples.
CONTRIBUTING.md Adjusts spacing before the contribution steps.
biome.json Updates the schema and generated-file exclusions.
.vscode/​settings.json Selects Biome for Markdown and YAML formatting.
.github/​workflows/​publish-next.yml Normalizes YAML indentation and quotes.
.github/​workflows/​publish-latest.yml Normalizes YAML indentation and quotes.
.github/​workflows/​ci.yml Normalizes quoting of the pnpm cache setting.

Review effort: Balanced

@bicstone bicstone self-assigned this Nov 10, 2026
@bicstone
bicstone merged commit d3ba4f9 into main Nov 10, 2026
2 checks passed
@bicstone
bicstone deleted the fix/biome-2.6-config branch November 10, 2026 13:58
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.

3 participants