@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
2 new12 fixed
Release note
Patch Changes
Fixed #7999: Correctly place
awaitafter leading comment in auto-fix action fromnoFloatingPromisesrule.Fixed #8148.
noInvalidUseBeforeDeclarationno longer reports some valid use before declarations.The following code is no longer reported as invalid:
class classA { C = C; } const C = 0;Fixed #8174, where the HTML parser would parse 2 directives as a single directive because it would not reject whitespace in Vue directives. This would cause the formatter to erroneously merge the 2 directives into one, resulting in broken code.
- <Component v-else:property="123" /> + <Component v-else :property="123" />
Fixed #7876: The
noUnusedImportsrule now ignores imports that are usedThe following code will no longer be a false positive:
import type { a } from "a" /** * {@linkcode a} */ function func() {}Improved the detection of the rule
noUnnecessaryConditions. Now the rule isn't triggered for variables that are mutated inside a module.This logic deviates from the original rule, hence
noUnnecessaryConditionsis now marked as "inspired".In the following example,
heystarts asfalse, but then it's assigned to a string. The rule isn't triggered inside theifcheck.let hey = false; function test() { hey = "string"; } if (hey) { }Fixed #8144: Improve
noSyncScripts, ignore script tags withtype="module"as these are always non-blocking.Fixed #7877: Range suppressions now handle suppressed categories properly.
Valid:
// biome-ignore-start lint: explanation const foo = 1; // biome-ignore-end lint: explanation
Added support for parsing and formatting the CSS if function.
Example
.basic-style { color: if(style(--scheme: dark): #eeeeee; else: #000000;); }Fixed #8138 by reverting an internal refactor that caused a regression to the rule
noUnusedPrivateClassMembers.Improved the type inference engine, by resolving types for variables that are assigned to multiple values.
Added the
useVueValidVTextlint rule to enforce validv-textdirectives. The rule reports whenv-texthas an argument, has modifiers, or is missing a value.Invalid:
<div v-text /> <!-- missing value --> <div v-text:aaa="foo" /> <!-- has argument --> <div v-text.bbb="foo" /> <!-- has modifier -->
Fixed
useVueValidVHtmlso that it will now flag empty strings, e.g.v-html=""Fixed #6675: Now only flags
noAccumulatingSpread on Object.assign when a new object is being allocated on
each iteration. Before, all cases using Object.assign with reduce parameters
were warned despite not making new allocations.The following code will no longer be a false positive:
foo.reduce((acc, bar) => Object.assign(acc, bar), {});The following cases which do make new allocations will continue to warn:
foo.reduce((acc, bar) => Object.assign({}, acc, bar), {});Fixed CSS formatting of dimension units to use correct casing for
Q,HzandkHz.Before:
.cssUnits { a: 1Q; b: 1Hz; c: 1kHz; }After:
.cssUnits { a: 1Q; b: 1Hz; c: 1kHz; }
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.