Repository navigation
chore: update Biome configuration for v2.6 - #584
Merged
Merged
Conversation
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
There was a problem hiding this comment.
🟢 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
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.
背景
#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 が書き戻すため、整形すると毎回差分が出る)!!**/dist)で除外biome check --writeで workflow の YAML と Markdown を Biome の既定スタイルに整形確認
ローカルで CI と同じ手順を実行し、すべて成功しました。
pnpm install --frozen-lockfilepnpm run checkpnpm run buildpnpm run check:packageレビューで見てほしい点
;が付きます。好みでなければmarkdown.formatter.formatEmbeds: falseで止められます。prettierは devDependencies に残しています。Markdown と YAML を Biome に移したので、現状ほぼ使われていません。削除するかは別途判断してください。Generated by Claude Code