Changelog

biomejs/biome · · 6 commits

SCSS parsing gets two major fixes

Biome adds SCSS parent selectors and fixes several Sass/CSS at-rule parsing edge cases, plus a new Tailwind v4 class-sorting scaffold.

SCSS parent selectors land in the parser and formatter (denbezrukova9a162c)

Biome now understands SCSS parent selectors like &-foo, adding new syntax nodes plus formatter support. This also expands nested selector handling and updates fixtures, unlocking correct parsing/printing for a core Sass pattern.

SCSS at-rules now accept semicolonless statements (denbezrukovc8b5e2a)

The CSS parser/formatter now handles semicolonless SCSS statement at-rules such as @debug, @error, @return, @warn, and @content without misparsing them. This is a practical compatibility fix for real-world Sass code and comes with broad parser/formatter snapshot updates.

Plain CSS custom functions are distinguished from Sass @function (denbezrukov15fdfdf)

Biome now routes dashed @function --name(...) forms to CSS custom-function parsing instead of treating them as SCSS functions. That closes a parsing gap between Sass and plain CSS syntax and should reduce false positives on modern codebases.

Tailwind v4 sorted-classes support is scaffolded (jiwon7948f1118)

A new parser-based sort module and extracted Tailwind v4 presets were added for the useSortedClasses lint. This is groundwork for v4-aware class ordering, but the implementation is still in scaffold form and not yet a user-facing behavioral change.

Other misc changes

  • VCS config docs tweak and revert (2 commits)