@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
1 new25 fixed
Release note
Patch Changes
Fixed
useExhaustiveSwitchCasesfor unions of bigint literals. The rule now reports missing bigint cases and compares bigint literals by value, including binary, octal, hexadecimal, and separator-containing spellings. For example, this switch now reports the missing2ncase:declare const value: 1n | 2n; switch (value) { case 1n: break; }Fixed false positives in
noBaseToStringanduseNullishCoalescingwhen member, stringification, or nullish inference cannot complete. These rules now suppress diagnostics instead of reporting from partial type information. For example, neither expression is reported when a recursive type cannot be fully resolved:type Recursive = Recursive; declare const value: Recursive; String(value); value || "fallback";
Fixed #10922: the action
useSortedAttributesno longer triggers for HTML instructions.Fixed
noThenPropertyfailing to detectObject.fromEntries,Object.defineProperty, andReflect.definePropertycalls with comments between their tokens.Fixed #10980:
useAriaPropsSupportedByRoleno longer reports false positives when the attribute that determines an element's implicit ARIA role is written as a shorthand attribute, such as<a {href} aria-label="...">in Astro and Svelte files.Shorthand attributes are now taken into account when computing the implicit role, so the anchor above correctly resolves to the
linkrole instead ofgeneric.Fixed CSS formatter casing for syntax-owned names while preserving author-defined names, including scoped keyframes and container scroll-state queries.
- A:HOVER { COLOR: INITIAL; } + A:hover { color: initial; } - @KEYFRAMES :GLOBAL KeepFrames { FROM { COLOR: RED; } } + @keyframes :GLOBAL KeepFrames { from { color: RED; } } - @CONTAINER scroll-state((SCROLLED: TOP) AND (STUCK)) { A:HOVER { COLOR: RED; } } + @container scroll-state((SCROLLED: TOP) AND (STUCK)) { A:hover { color: RED; } }Fixed CSS formatting for comments between declaration values and
!important.-a { color: /* before */ /* after */ red !important; } +a { color: /* before */ red /* after */ !important; }Fixed the CSS formatter to preserve comments on the correct side of selector combinators and before declaration blocks.
-.before > /* comment */ .after {} +.before /* comment */ > .after {}It now also keeps selectors with escaped newlines in attribute values inline when they fit.
-div - span[foo="bar\ +div span[foo="bar\ value"] {}Fixed #10870:
noUnresolvedImportsno longer reports false positives such asimport type { NextRequest } from "next/server".Fixed #10622: the HTML/Vue parser no longer panics on the argument-less
v-bindshorthand (:="props").This syntax is valid Vue and equivalent to
v-bind="props", so the parser now accepts it (along with the longhandv-bind:="props") instead of crashing while building a diagnostic for a missing argument.Improved generic tuple inference for
useIncludes. The rule now recognizes specialised tuple element types returned through generic aliases.Fixed
#10855: Biome now supports parsing and formatting CSS custom media queries declared with@custom-media.Fixed an issue where Biome logs became too verbose, dumping information not relevant to user's operations.
Fixed #10963: Biome no longer panics when a type-aware rule such as
noFloatingPromiseschecks a call to a function with multiple call signatures imported from another module.Fixed
check --writecommand. Now the command reports code frame of the formatted code, if the formatter is enabled.Fixed #10892:
noUnnecessaryConditionsno longer reports a false positive when checking a member of a discriminated union that is accessed through a default type-only namespace import. The following code is no longer flagged:import type Types from "./types"; declare function parse(): Types.Result<string>; const result = parse(); if (!result.success) { }Biome no longer removes embedded styles and scripts in HTML files.
Fixed a bug where closing one editor stopped a shared Biome daemon used by other editors. LSP proxy processes now exit when either the editor or daemon disconnects.
Improved the performance of the
noThenPropertylint rule by about 50%.Fixed
noMisusedPromises: The rule now reports Promise-returning callbacks where a synchronous callback is expected when calls use tuple spreads or tuple rest parameters, including generic and deeply nested tuples, and when constructor signatures come from interface or object types. Recursive or excessively nested tuple spreads use a conservative fallback so analysis terminates.For example, the following callback is now reported.
declare function consume(...args: [number, () => void]): void; const prefix: [number] = [1]; consume(...prefix, async () => {});Added the rule
noNegationInEqualityCheck. The rule flags negated expressions on the left side of strict equality checks like!foo === bar— due to operator precedence this evaluates as(!foo) === barwhich is almost always a mistake forfoo !== bar.The rule provides an unsafe fix that flips the operator.
// Invalid !foo === bar; !foo !== bar; // Valid foo !== bar; foo === bar;
Improved overload selection for
noMisusedPromises. Biome now handles overloaded calls, overloaded constructors, rest parameters, union arguments, and generic constraints without selecting an incompatible signature. For example,noMisusedPromisesnow reports the async callback passed to the synchronous overload:declare function consume(kind: "async", callback: () => Promise<void>): void; declare function consume(kind: "sync", callback: () => void): void; consume("sync", async () => {});Fixed
useArrayFindto recognize bigint zero indexes.Fixed an orchestration issue that could lead to deadlocks when type-aware rules are enabled.
Hardened the Biome Language Server by improving its synchronisation logic.
Fixed false positives in
noMisusedPromisesanduseAwaitThenablewhen Promise or thenable inference cannot complete. These rules now suppress diagnostics instead of treating incomplete type information as a definite result. For example,useAwaitThenableno longer reportsawait valuewhen the value's thenability is unknown:declare const value: unknown; async function consume() { await value; }
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.