Changelog

biomejs/biome · · 11 commits

YAML, CSS, and HTML formatting get smarter

Major formatter fixes across YAML, CSS, and HTML, plus one lint quick-fix cleanup and a release cut.

CSS formatter now handles comments and SCSS variables in rule lists (denbezrukov75721e4)

Biome expanded CSS/SCSS syntax support so CssRuleList can contain SCSS variable declarations, not just plain rules. The formatter and parser were updated together, which should prevent misparsing and let SCSS rule-list content format correctly.

YAML formatting gains quote normalization, explicit entries, and middle comments (dyc365d9024, dyc38e216f2, dyc3acdaf87, dyc361e35a3)

This was a large YAML formatter/parser pass: it now normalizes scalar quote style, preserves and places “middle” comments between node properties and content, and handles explicit block mapping entries more accurately. It also normalizes where YAML node properties are printed, which affects tags, anchors, and explicit mapping layouts in a number of edge cases.

HTML formatter preserves whitespace-sensitive content (dyc34dcd0d9, subotac9c16840)

Biome now treats <textarea>, <xmp>, and <plaintext> like other verbatim elements, preserving their content exactly instead of collapsing whitespace. A related fix also keeps trailing newlines after HTML comments, improving fidelity for comment-heavy HTML and Svelte outputs.

Other misc changes

  • Parser fix for YAML plain scalars and alias-name lexing (dyc32c526da)
  • Lint quick fix: remove double space in noUselessTernary (dadavidtseng8ffe2b9)
  • Release/versioning and changelog updates (1139f1c)