@biomejs/biome
2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed
2.6.9 is the newest release of 2.x.
In short
6 new2 faster10 fixed10 internal
Release note
The section about @biomejs/biome of a note shared by several packages.
Patch Changes
Added a new nursery rule
useReactCompiler, which reports diagnostics from React Compiler lint mode.Improved performance of
noImportCycles.Added the nursery rule
noSvelteLegacyConst, which disallows legacy Svelte{@const}tags and recommends declaration tags with$derived().Invalid:
{#each boxes as box} {@const area = box.width * box.height} <p>{area}</p> {/each}Valid:
{#each boxes as box} {const area = $derived(box.width * box.height)} <p>{area}</p> {/each}Fixed #11250:
useAwaitno longer reports async functions that contain anawait usingdeclaration.Fixed #11017:
noUselessUndefinedno longer reportsreturn undefinedwhen the enclosing function has a return type annotation other thanundefinedorvoid.Fixed #11228: CSS block comments between a declaration colon and value now preserve their source indentation.
:root { --font-stack: -/* comment */ + /* comment */ system-ui; }Fixed #11280: CSS formatting keeps comments inside functional pseudo-classes and pseudo-elements instead of moving them before the function name.
-:/* comment */ where(div) {} +:where(/* comment */ div) {}HTML
styleattribute values are now parsed as CSS. All Biome CSS lint rules are applied to thestyleattributes.Fixed Svelte files failing to parse when an expression begins with an object literal.
Now the following snippet is correctly parsed:
<p>{{ a: true }}</p> <div class={{ active: isActive }}></div>Fixed #10242: JavaScript GritQL patterns with multiple metavariables now match snippets consistently in WebAssembly.
Added the nursery rule
noInvalidPropertyInitValue, which reports an@propertywhoseinitial-valuedoes not match itssyntaxdescriptor. For example, the following declaration triggers the rule becauseredis not a<length>:@property --size { syntax: "<length>"; inherits: false; initial-value: red; }Improved the diagnostic emitted by
noRootType.Fixed #11223: Improved the
performance ofnoMisusedPromises
when analyzing async class methods that call other methods throughthis.Fixed #10806:
noUselessFragmentsno longer causes Biome to panic when its unsafe fix removes a fragment used as a JSX attribute value.Fixed #11178:
noUndeclaredVariablesno longer reports Vue's built-in instance properties, such as$slotsand$attrs, in template expressions or$eventin inline event-handler expressions. The instance properties are still reported inside<script setup>, where they are not defined.Fixed CSS parsing of registered custom properties: Biome now correctly validates the
syntaxdescriptor of@propertyrules.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.