@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 new28 fixed
Release note
Patch Changes
Added the option
ignoreBooleanCoercionto useNullishCoalescing. When enabled, Biome ignores||and||=used inside aBoolean()call, where coalescing on falsy values is intentional.Added the option
ignorePrimitivesto useNullishCoalescing. When enabled, Biome ignores||,||=, and ternary expressions whose non-nullish operands are all primitives the option opts out of. Usetrueto ignore all primitives, or an object selectingstring,number,boolean, orbigint.Added the new nursery rule
noSvelteUnnecessaryStateWrap, which reports unnecessary$state()wrapping of classes fromsvelte/reactivitythat are already reactive.<script> import { SvelteMap } from "svelte/reactivity"; const map = $state(new SvelteMap()); // redundant </script>Fixed #10739. Now the rule
useValidAutocompletecorrectly flags theautoCompleteattribute.Fixed #10768. Improved the performance of the Biome Language Server by cancelling certain in-flight operations when there are fast updates.
Fixed
noMisleadingReturnTypefalse positive on returns that use a widening type assertion:"a" as stringis no longer reported as misleading. The rule now also reports a literal-pinning assertion such asfalse as false, matching the existingas constbehavior.// No longer flagged (returns are `string`): function getValue(b: boolean): string { if (b) return "a" as string; return "b" as string; } // Now also reported, like `as const` (returns `false`): function isReady(): boolean { return false as false; }Fixed #7718: Biome now correctly parses CSS nesting selectors when
&appears as a trailing sub-selector after a type selector, e.g.h1& { color: red; }.Fixed CSS formatter output for selector lists with
allowWrongLineCommentsand//comments after a selector comma. Biome now keeps the selector before the line comment inline instead of breaking it across descendant combinators.-.powerPathNavigator - .helm - button.pressedButton, // pressed +.powerPathNavigator .helm button.pressedButton, // pressed .powerPathNavigator .helm button:active:not(.disabledButton) { }Fixed #8269: the CSS parser now accepts Tailwind
@variantand@utilitynames that start with a digit, such as the2xlbreakpoint.@utility container { @variant 2xl { max-width: 1400px; } }Fixed an issue reported in #10708: the GitLab reporter now handles
--verbosediagnostics filtering correctly.Fixed a bug where GritQL patterns rejected positional (unkeyed) arguments.
Fixed #10697: The formatter no longer removes the parentheses around an
awaitoryieldexpression used as the target of a TypeScript instantiation expression. For example,(await makeFactory)<Value>is no longer reformatted toawait makeFactory<Value>, which would change the meaning of the code.Fixed #9568:
noFloatingPromisesno longer reports a false positive when calling an overloaded function and the selected overload does not return a promise.function bestEffort(cb: () => Promise<number>): Promise<number>; function bestEffort(cb: () => number): number; function bestEffort( cb: () => number | Promise<number>, ): Promise<number> | number { return cb() as Promise<number> | number; } // This resolves to the second overload, which returns `number`, so it is no // longer flagged as a floating promise. bestEffort(() => 42);Fixed #2862:
noInteractiveElementToNoninteractiveRoleno longer reports custom elements (a tag name containing a dash, e.g.<my-button role="img" />). Per the W3C HTML-ARIA specification, a custom element may be given any role or none.Fixed #10635: Biome now recognizes chained
table tests such astest.concurrent.each()andit.concurrent.each()as test calls, fixingnoMisplacedAssertionfalse positives and improving formatting for those test declarations.Fixed #10636: noStaticElementInteractions no longer reports a false positive for event handlers on Svelte special elements such as
<svelte:window>,<svelte:document>, and<svelte:body>. These are not real DOM elements, so they are now ignored by the rule.Fixed #6686: the
ragecommand now respects the--config-pathoption and theBIOME_CONFIG_PATHenvironment variable when loading the Biome configuration. Previously it always used the default configuration resolution and reported the configuration asNot setwhen nobiome.jsonexisted in the working directory.Fixed #10742:
noSolidDestructuredPropsnow reports destructured props in Solid function components and JSX children.Fixed false positives in
noUnusedImports,noUnusedVariables, anduseImportTypefor Svelte components that use both a<script module>and a<script>block. The two blocks compile to a single module and share a top-level scope, so a binding (import, function, or variable) declared in one block and used only in the other is no longer reported as unused.Fixed #10754:
useVueValidVBindno longer reports the Vue 3.4+ same-name shorthand as missing a value.:fooandv-bind:fooare now accepted as equivalent to:foo="foo", whilev-bind,v-bind:[dynamicArg], and:[dynamicArg]without a value continue to be reported.Fixed an issue reported in #10708:
biome ragedidn't detect running Biome daemon pipes on Windows.Fixed an issue where Biome was resolving the well-known Zed settings file from the wrong location on macOS and Windows.
Fixed an issue where
.scssfiles were incorrectly analyzed when runningbiome check.Fixed a bug where Biome incorrectly formatted snippets that have parsing errors.
Fixed
useAwaitThenablefalse positive when awaiting a custom thenable that is not the globalPromise. A value with a callablethenmember is now recognized as awaitable.interface Thenable<T> { then(onfulfilled: (value: T) => void): void; } declare const t: Thenable<number>; async function f() { await t; }Fixed #10708:
biome migratenow preserves trivia when migrating the deprecatedrecommendedoption topreset.Fixed #10657 #10671 #10661 #10637 #10718: HTML rules now correctly handle dynamic attributes.
Fixed an issue where
noUndeclaredClassesdidn't correctly detect styles defined inside the Astro directiveis:global.Improved the Biome Language Server DX by orchestrating certain operations, so that they won't block the editor during typing. This improvement is more visible in large documents.
Improved
noUnusedImports,noUnusedVariables,noUnusedFunctionParameters, anduseImportTypefor Svelte, Vue, and Astro files (withhtml.experimentalFullSupportEnabled). Bindings used only in the template — including component tags, attribute interpolations, directives,bind:shorthand, and snippet parameters — are no longer reported as unused, while genuinely unused ones still are.Fixed an issue where the Biome Language Server didn't enable project or type-aware lint rules, even when they were explicitly enabled.
Fixed an issue where
noUndeclaredClassesdidn't detect styles declared inside HTML documents.Fixed #10268 where a race condition resulted in internal errors such as:
The file biome.json does not exist in the workspace.
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.