@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
9 new41 fixed
Release note
The section about @biomejs/biome of a note shared by several packages.
Patch Changes
Fixed Astro attribute expressions rejecting TypeScript and JSX syntax that is accepted in text expressions.
<Component icon={<Icon />} count={total as number} onSelect={(e: Event) => e} />Fixed Astro attribute names being split on
:and.inside an expression, such as{x && <button x-on:keyup.enter={go} client:load.foo />}.Fixed a bare
>in the children of an Astro expression being treated as markup, such as{x && <div>a > b</div>}.Fixed HTML comments inside an Astro expression failing to parse. They are now read as trivia, wherever they appear among the children.
{x && <div><!-- first -->text<!-- last --></div>} {cond && <a></a><!-- c --><b></b>}Fixed
is:rawchildren inside an Astro expression being read as JSX, such as{x && <div is:raw>{not js} < & text</div>}.Fixed an apostrophe or quote in the text of a JSX element inside an Astro expression ending the expression early, such as
{items.map((i) => <li>it's {i}</li>)}.Fixed the children of a
<script>or<style>inside an Astro expression being read as JSX. Their contents are text, so braces and comparisons no longer have to be escaped.{cond && <style>a { color: red }</style>} {cond && <script>let x = {a: 1};</script>}Added support for template literal attribute values inside an Astro expression, such as
{x && <C data-x=`t${x}` />}.Fixed unquoted attribute values being rejected inside an Astro expression, such as
{x && <a class=foo maxlength=255 href=/about>go</a>}.Fixed a template literal nested inside
${}breaking the rest of an Astro file, such asconst href = `/blog${page === 0 ? '' : `/${page + 1}`}`;.Fixed a quote inside a regex character class breaking the rest of an Astro file, such as
const unsafe = /[/"]/;.Added the nursery rule
useFlatMathMinMax. BecauseMath.min()andMath.max()accept any number of arguments, the rule reports unnecessary nested calls to the same method:Math.max(Math.max(a, b), c);
The fix flattens this expression to
Math.max(a, b, c).Fixed #11475:
noUnresolvedImportsno longer reports Bun runtime built-in modules (bun,bun:bundle,bun:ffi,bun:jsc,bun:sqlite,bun:test).Fixed #6830: Biome now reports a diagnostic for excessively deep syntax instead of overflowing the native stack while releasing the parsed tree.
Added the nursery rule
noThisOutsideOfClass. The rule reportsthisoutside class members and TypeScript functions with an explicitthisparameter.function Person(name) { this.name = name; }Fixed #11529, where
noFloatingPromisesmissed unhandled Promise chains when the imported function's module belonged to an import cycle. Cyclic modules now preserve types for exports that do not participate in recursive type dependencies.Fixed #11500: the formatter now prints the
declaremodifier before accessibility modifiers on class properties.private declare readonly name: stringis now formatted asdeclare private readonly name: string, matching Prettier and TypeScript's canonical modifier order.Fixed #5091: Biome no longer moves comments next to the
<of a generic, which causes invalid TypeScript syntax:- Generic<// a comment + Generic< + // a comment
Fixed #4592. Biome no longer crashes while parsing malformed
deleteexpressions.Fixed #6427 so Grit plugins can use
function = ...as a node argument.Fixed #6644:
noUnusedVariablesnow recognizes all interface declarations in a TypeScript declaration-merging group when the interface is referenced.The following snippet no longer triggers the rule.
interface Things { foo: string; } interface Things { bar: string; } export type Key = keyof Things; interface Things { baz: string; }Fixed #6615.
noDuplicatePropertiesno longer reports declarations nested in block at-rules as duplicates of declarations in their parent block.Fixed #11454:
noMisplacedAssertionnow recognises@fast-check/vitest'stest.prop(...)(and.concurrent.prop,.skip.prop, etc.) as a test function, the same way it already recognisestest.each. The JS formatter picks up the same recognition, so a curriedtest.prop(...)(...)call is now formatted with the regular breakable argument layout used fortest.each/test.for, instead of the single-line-hugging layout used for plainit/testcalls.For example, Biome no longer reports the assertion below as misplaced:
import { fc, test } from "@fast-check/vitest"; test.prop([fc.string()])("round-trips", (s) => { expect(s).toBe(s); });Fixed #4928:
noUnusedVariablesno longer reports a value declaration as unused when its merged namespace is referenced.Fixed a false positive in
noVueDuplicateKeyswhere a<script setup>variable initialized frompropswas reported as a duplicate of the prop it derives from. Biome now exempts any variable whose initializer referencesprops, instead of only recognizingdefineProps()andtoRefs(props).For example, Biome no longer reports
foobelow as a duplicate key:<script setup> import { toRef } from 'vue'; const props = defineProps(['foo']); const foo = toRef(props, 'foo'); </script>Fixed #6640. Biome no longer crashes when linting malformed
for...ofstatements.Fixed #10838:
useSortedAttributesno longer corrupts JSX attributes when nested JSX elements also require sorting.Fixed #11520, where the Biome scanner would start analysing dependencies multiple times, leading to long and unresponsive sessions.
Fixed the diagnostic range of
noInferrableTypesso it now highlights only the type instead of including the leading:colon, spaces and comments.Fixed
#11537:noShorthandPropertyOverridesnow compares declarations only within the same block. The rule no longer reports@supportsfeature queries and correctly checks nested,@keyframes, and@pageblocks.Fixed #11528:
noFloatingPromisesno longer reports statement-levelawaitexpressions that handle Promise values, including overloaded calls returning Promise aliases. Awaited values that resolve to arrays of Promises remain reported because their element Promises are not handled byawait.Fixed #10241. Biome no longer reports unsupported text expression diagnostics for double-curly text in vanilla HTML, and the formatter preserves adjacent curly-brace text.
Added the nursery rule
noVueDeprecatedScopedSlots. It reports deprecated$scopedSlotsreferences in Vue templates and component objects, and offers an unsafe replacement with$slots. For example, Biome now reportsthis.$scopedSlots.defaultinside a Vue component.Fixed the formatter crashing on an Astro or Svelte expression spanning several lines in a file with CRLF line endings, such as
<p>{a +\r\n b}</p>.Added the nursery rule
useModernMathApis. The rule reports legacy mathematical patterns that have direct modernMathequivalents.Math.sqrt(a * a + b * b);
Added the nursery rule
noBunModules, which forbids the use of Bun builtin modules (e.g.bun:sqlite,bun:ffi).Fixed #11542: Biome now reports HTML comments between Svelte tag attributes as parse errors.
Fixed #3862. Biome now parses legacy Internet Explorer
filterand-ms-filtervalues such asprogid:DXImageTransform...andalpha(opacity=40).Improved the Tailwind parser's ability to recover from parsing failures. Whitespace now always allows the parser to recover and start parsing a new class.
Fixed #3515 and #10395, where Biome could corrupt Unicode characters while writing source received through standard input to standard output. Characters such as
⚠and✔are now preserved.Fixed #11512, where
style/noDescendingSpecificitymissed lower-specificity selectors after a later higher-specificity selector with the same tail selector.Fixed #11541: formatting a Svelte render tag followed by an HTML comment no longer duplicates the comment.
<div> {@render children?.()} <!-- comment --> - <!-- comment --> </div>Fixed #11525. Now the configuration schema correctly provides auto-completion for linter domains.
Fixed #11352:
useExplicitLengthCheckno longer reportslength-like properties used as value-producing||fallbacks or optional chains, and it no longer offers fixes for value-producing&&checks or unsafe negations.Fixed an issue where the Biome Language Server would start with logging level set to debug. This would cause logs to grow exponentially in long sessions.
Fixed handling of
biome-ignore formatsuppression comments on TypeScript declared class properties with string literal names.class A { declare /* biome-ignore format: exercise suppression checking */ 'a-b': 0; }Added the
noInvalidFileInputAcceptnursery rule. The rule reports invalid literalacceptvalues on file inputs in JSX and HTML, and normalizes common mistakes.<input type="file" accept="image/jpg" />
Improved type inference performance by avoiding resolution of unused members in object arguments.
Added the new nursery rule
useReactNamingConvention, which enforces naming conventions for React values assigned fromcreateContext,useId, anduseRef. A value fromcreateContextmust be a PascalCase component name ending withContext, a value fromuseIdmust be namedidor end withId, and a value fromuseRefmust be namedrefor end withRef.Added the nursery rule
noUnmodifiedLoopCondition, which reports variables in loop conditions that are never modified in the loop.let node = getNode(); while (node) { process(node); }
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.