@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
7 new11 fixed
Release note
Patch Changes
Added support Svelte syntax
{@html}. Biome now is able to parse and format the Svelte syntax{@html}:-{@html 'div'} +{@html 'div'}The contents of the expressions inside the
{@html <expression>}aren't formatted yet.Fixed a bug where the Biome Language Server would enable its project file watcher even when no project rules were enabled.
Now the watching of nested configuration files and nested ignore files is delegated to the editor, if their LSP spec supports it.
Added support Svelte syntax
{@render}. Biome now is able to parse and format the Svelte syntax{@render}:-{@render sum(1, 2) } +{@render sum(1, 2)}The contents of the expressions inside the
{@render <expression>}aren't formatted yet.Updated documentation and diagnostic for
lint/complexity/noBannedTypes. The rule should have a more detailed description and diagnostic error message.Biome now keeps a blank line after the frontmatter section in Astro files.
The CSS Parser, with
tailwindDirectivesenabled, will now accept at rules like@mediaand@supportsin@custom-variantshorthand syntax.Fixed #7967: Fixed the issue with support for advanced SVG props
Added support Svelte syntax
{@attach}. Biome now is able to parse and format the Svelte syntax{@attach}:-<div {@attach myAttachment }>...</div> +<div {@attach myAttachment}>...</div>The contents of the expressions inside the
{@attach <expression>}aren't formatted yet.Added support Svelte syntax
{#key}. Biome now is able to parse and format the Svelte syntax{#key}:-{#key expression} <div></div> {/key} +{#key expression} + <div></div> +{/key}The contents of the expressions inside the
{#key <expression>}aren't formatted yet.Added support Svelte syntax
{@const}. Biome now is able to parse and format the Svelte syntax{@const}:-{@const name = value} +{@const name = value}The contents of the expressions inside the
{@const <expression>}aren't formatted yet.Corrected rule source references.
biome migrate eslintshould do a bit better detecting rules in your eslint configurations.Added the nursery rule
useArraySortCompare. Require Array#sort and Array#toSorted calls to always provide a compareFunction.Invalid:
const array = []; array.sort();
Valid:
const array = []; array.sort((a, b) => a - b);
The HTML parser is now able to parse vue directives. This enables us to write/port Vue lint rules that require inspecting the
<template>section. However, this more complex parsing may result in parsing errors where there was none before. For those of you that have opted in to the experimental support (akaexperimentalFullSupportEnabled), we greatly appreciate your help testing this out, and your bug reports.Added support for the Svelte syntax
{#if}{/if}. The Biome HTML parser is now able to parse and format the{#if}{/if} blocks:<!-- if / else-if / else --> {#if porridge.temperature > 100} -<p>too hot!</p> + <p>too hot!</p> {:else if 80 > porridge.temperature} -<p>too cold!</p> + <p>too cold!</p> {:else if 100 > porridge.temperature} -<p>too too cold!</p> + <p>too too cold!</p> {:else} -<p>just right!</p> + <p>just right!</p> {/if}The CSS parser, with
tailwindDirectivesenabled, will now accept lists of selectors in@custom-variantshorthand syntax.@custom-variant cell (th:has(&), td:has(&));
The GitLab reporter now outputs format errors.
indentScriptAndStyleno longer indents the frontmatter in Astro files.Fixed an edge case in the
useArrowFunctionrule.The rule no longer emits diagnostics for or offers to fix functions that reference
the arguments object,
because that object is undefined for arrow functions.Valid example:
// Valid: this function cannot be transformed into an arrow function because // arguments is not defined for arrow functions. const getFirstArg = function () { return arguments[0]; };
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.