@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 new15 fixed2 changed
Release note
Patch Changes
Fixed #7340: The linter now allows the
navigationproperty for view-transition in CSS.Previously, the linter incorrectly flagged
navigation: autoas an unknown property. This fix addsnavigationto the list of known CSS properties, following the CSS View Transitions spec.Fixed #7268: Files that are explicitly passed as CLI arguments are now correctly ignored if they reside in an ignored folder.
Fixed #7085, now the rule
noDescendingSpecificitycorrectly calculates the specificity of selectors when they are included inside a media query.Fixed #7381, now the
useOptionalChainrule recognizes optional chaining using Yoda expressions (e.g.,undefined !== foo && foo.bar).Fixed #7289. The rule
useImportTypenow inlinesimport typeintoimport { type }when thestyleoption is set toinlineType.Example:
import type { T } from "mod"; // becomes import { type T } from "mod";Fixed #7261: two characters
・(KATAKANA MIDDLE DOT, U+30FB) and・(HALFWIDTH KATAKANA MIDDLE DOT, U+FF65) are no longer considered as valid characters in identifiers. Property keys containing these character(s) are now preserved as string literals.Fixed a bug where the Biome Language Server didn't correctly compute the diagnostics of a monorepo setting, caused by an incorrect handling of the project status.
Added the new lint rule
useConsistentArrowReturn.This rule enforces a consistent return style for arrow functions.
Invalid
const f = () => {
return 1;
};This rule is a port of ESLint's arrow-body-style rule.
Support dynamic
import deferandimport source. The syntax looks like:import.source("foo"); import.source("x", { with: { attr: "val" } }); import.defer("foo"); import.defer("x", { with: { attr: "val" } });Range suppressions are now supported for Grit plugins.
For JavaScript, you can suppress a plugin as follows:
// biome-ignore-start lint/plugin/preferObjectSpread: reason Object.assign({ foo: "bar" }, baz); // biome-ignore-end lint/plugin/preferObjectSpread: reasonFor CSS, you can suppress a plugin as follows:
body { /* biome-ignore-start lint/plugin/useLowercaseColors: reason */ color: #fff; /* biome-ignore-end lint/plugin/useLowercaseColors: reason */ }Reduced the severity of certain diagnostics emitted when Biome deserializes the configuration files.
Now these diagnostics are emitted asInformationseverity, which means that they won't interfere when running commands with--error-on-warningsFixed #7301:
useReadonlyClassPropertiesnow correctly skips JavaScript files.Fixed #7286. Files are now formatted with JSX behavior when
javascript.parser.jsxEverywhereis explicitly set.Previously, this flag was only used for parsing, but not for formatting, which resulted in incorrect formatting of conditional expressions when JSX syntax is used in
.jsfiles.Added the new nursery rule
noUselessCatchBinding. This rule disallows unnecessary catch bindings.try { // Do something - } catch (unused) {} + } catch {}Fixed #4298. Biome now correctly formats CSS declarations when it contains one single value:
.bar { - --123456789012345678901234567890: var(--1234567890123456789012345678901234567); + --123456789012345678901234567890: var( + --1234567890123456789012345678901234567 + ); }Fixed #7130. Removed the emission of a false-positive diagnostic. Biome no longer emits the following diagnostic:
lib/main.ts:1:5 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━ ⚠ Suppression comment has no effect because the tool is not enabled. > 1 │ /** biome-ignore-all assist/source/organizeImports: For the lib root file, we don't want to organize exports */ │ ^^^^^^^^^^^^^^^^Fixed #7371 where the Biome Language Server didn't correctly recompute the diagnostics when updating a nested configuration file.
Fixed #7079. Now the rule
useSemanticElementsdoesn't trigger components and custom elements.Fixed #7344.
useNamingConventionno longer reports interfaces defined in global declarations.Interfaces declared in global declarations augment existing interfaces.
Thus, they must be ignored.In the following example,
useNamingConventionreportedHTMLElement.
It is now ignored.export {}; declare global { interface HTMLElement { foo(): void; } }Fixed #7310:
useReadonlyClassPropertiescorrectly handles nested assignments, avoiding false positives when a class property is assigned within another assignment expression.Example of code that previously triggered a false positive but is now correctly ignored:
class test { private thing: number = 0; // incorrectly flagged public incrementThing(): void { const temp = { x: 0 }; temp.x = this.thing++; } }
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.