Changelog

biomejs/biome · · 5 commits

Astro, CSS, and overrides get fixes

Biome fixed Astro frontmatter handling, Astro diagnostics, HTML/Vue/Svelte newline preservation, and formatter overrides for trailing commas.

Support formatter.trailingCommas in overrides (dyc39b1577f)

Biome now honors trailingCommas inside formatter override blocks, matching the top-level formatter config. This fixes per-glob formatting behavior so overridden files can use different trailing-comma rules.

Preserve Astro frontmatter exactly during write mode (dyc3b59133f)

Biome no longer injects extra newlines into Astro frontmatter when lint/assist write mode runs. That prevents formatting-only writes from silently changing the file structure.

Show Astro diagnostic advice at the correct location (Conaclosef764d5)

Astro diagnostics now carry the right offset when reported from embedded content, so suggestions and assist output point to the real source span. This makes lint feedback much easier to act on in mixed Astro files.

Fix HTML/Vue/Svelte standalone interpolation newline preservation (dyc32e37709)

The HTML formatter now keeps existing newlines around isolated interpolations in inline elements instead of collapsing them away. This corrects Vue and Svelte formatting for cases like multiline {{ value }} blocks.

Refactor SCSS ratio parsing in expressions (denbezrukoved26542)

The SCSS parser dropped special handling for 10/10 from interpolatable value parsing and updated the affected snapshots. This is a parser refactor with broad test churn, but the change is internal and focused on expression handling.

Other misc changes

  • Added/updated Astro import-organization test coverage and snapshots.
  • Updated a Claude skill doc with a note about prettier-compare --rebuild in read-only modes.
  • Changeset and snapshot/test maintenance across the touched areas.