@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
3 new1 faster17 fixed8 internal
Release note
The section about @biomejs/biome of a note shared by several packages.
Patch Changes
Fixed #11496:
useValidAnchornow treats Astro JSX shorthand attributes like<a {href}>as a validhref.Fixed #9944: adjacent elements inside an Astro expression now parse as an implicit fragment instead of raising an error.
{options.map(() => <div /> <div /> )}Fixed Astro templates rejecting unclosed HTML void elements, such as
{cond && <br>}.Fixed #11157:
noUnusedVariablesno longer reports Vue<script setup>bindings used by CSSv-bind()as unused.Fixed #11389: Files passed through
--stdin-file-pathnow use full HTML support for Astro, Svelte, and Vue when it is enabled.Fixed
noVueRefAsOperandto track Vue refs through declaration aliases andtoRefs()properties, and to recognizeuseTemplateRef()results. The rule no longer reports false positives such as plain ref transfers, plaintoRefs()property access,defineModel()modifiers, or the supported.effectmember as operands.The refactor enabling these fixes also improves the performance of the rule.
Fixed #11436: GritQL snippets such as
export { $specifiers } from $sourcenow match named re-exports with aliases, inlinetypemodifiers, and multiple specifiers.Fixed #11390, where
noFloatingPromisesperformed expensive full type inference for calls to non-Promise methods declared on third-party TypeScript classes. The rule now classifies those calls using targeted type information.Fixed
noVueRefAsOperandso it no longer reports a callback parameter (e.g. from.find(),.map()) as an unwrapped ref value just because it's nested inside aref(),computed(), or similar call.const result = computed(() => list.find((item) => item.label === "a"));
Previously,
itemhere was incorrectly treated as a ref value because the rule attributed it to the outercomputed()call.Fixed
useGraphqlNamingConventionso it no longer reports GraphQL enum value definitions with comments & descriptions and now displays a more accurate diagnostic range.Fixed #11214:
noUnusedVariablesno longer reports type parameters declared by non-default function overload signatures that have an implementation.Added a new nursery rule
noAstroSetHtmlDirective, which disallows Astro'sset:htmldirective because untrusted content can introduce cross-site scripting vulnerabilities.For example, the following snippet triggers the rule:
<div set:html={content} />Fixed #10776:
useVueHyphenatedAttributesno longer reports lowercase attribute names containing punctuation, such aspt:header:data-test-idandsome_attr.Fixed #10330: Vue interpolation delimiters now stay attached to whitespace-sensitive element boundaries and adjacent inline siblings, wrapping their expression when needed to fit the configured line width. Interpolations followed by text now also converge after one formatting pass.
-<v-btn v-if="store.state.user" variant="text" to="/my-rooms" - >{{ $t("nav.my-rooms") }}</v-btn -> +<v-btn v-if="store.state.user" variant="text" to="/my-rooms">{{ + $t("nav.my-rooms") +}}</v-btn>Added the nursery rule
noUndeclaredCustomProperties, which reports references to custom properties that are not defined in available CSS, static HTML-likestyleattributes, or JSX stringstyleattributes.For example, the following snippet triggers the rule:
a { color: var(--undefined-color); }Fixed: Variables and imports used as custom Vue directives are no longer reported as unused.
For example:
<script setup> const vHighlight = { mounted: (element) => { element.style.color = "red"; }, }; </script> <template> <p v-highlight>Hello</p> </template>Improved the performance of
useArraySortCompareby skipping type inference for calls to unrelated methods.Fixed #11464: Biome now parses parenthesized object literals returned from arrow functions when they contain a conditional expression and a nested arrow function.
Fixed #10278: Marked the fix for
noThisInStaticas unsafe by default.noGlobalAssignno longer reports assignments to a Vue<script setup>binding from a template expression, when the binding's name happens to match a built-in global (e.g.open,parent,top).For example, this no longer triggers a diagnostic:
<script setup> const open = defineModel(); </script> <template> <button @click="open = !open">Toggle</button> </template>
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.