Changelog

biomejs/biome · · 17 commits

Biome ships a batch of new lint rules

Several new nursery rules landed across JS, CSS, and HTML, plus a Svelte parse fix and a few formatter/refactor improvements.

Biome adds a wave of new nursery lint rules across JS, CSS, and HTML (dyc31413bf8, dyc3025c012, dyc3c3bd8ba, dyc3d82324e, dyc31001924, dyc35201ae5, dyc319fb503, dyc32d30ad9, dyc3b7a3678, yeliex16aaa88) These commits add multiple new rules, including Vue, TanStack Query, loop-control, SCSS, and existence-checking rules, each wired into config/schema/migration paths and backed by new tests. Together they expand Biome’s coverage substantially and should surface real bugs or questionable patterns in user code.

Fix Svelte {#each} parsing and embedded bindings (ematipico4de11d2) Biome now correctly parses Svelte {#each} blocks when keys use more advanced syntax, and the embed/binding plumbing was updated to recognize the Svelte-specific each-binding root. This matters because it fixes a parser bug that could break analysis or formatting for valid Svelte components.

Improve noUnnecessaryConditions to allow while (true) (dyc3addf04a) The rule no longer flags constant-true loop conditions, which removes a false positive for a common control-flow pattern. That makes the diagnostic more accurate without weakening the rule’s intended checks.

useErrorCause now accepts a trailing options argument (kristofermae97ca39) The rule was updated to handle an options object in the trailing position, alongside new coverage for shadowed globals. This aligns the lint rule with a wider set of valid call shapes and reduces incorrect reports.

JS formatter flattens parenthesized logical operands earlier (atharv12056b63f72) The formatter rewrite now handles parenthesized logical expressions on the first pass, improving how nested logical chains are normalized. That should reduce churn in formatted output for affected expressions.

Other misc changes

  • CI workflow tweak for musl binaries to use RELR relocations (siketyan0ba4d9a)
  • Large refactor to reduce generated Debug impl code for AST nodes (siketyanf46a41d2)
  • Shared empty rule-options types to reduce binary size (siketyan446c083)