@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
11 new27 fixed
Release note
Patch Changes
Added the
nursery/noIdenticalTestTitlelint rule. This rule disallows using the same title for twodescribeblocks or two test cases at the same nesting level.describe("foo", () => {}); describe("foo", () => { // invalid: same title as previous describe block test("baz", () => {}); test("baz", () => {}); // invalid: same title as previous test case });Improved the diagnostics for
useForOfto better explain the problem, why it matters, and how to fix it.Added a new nursery rule
noComponentHookFactories, that disallows defining React components or custom hooks inside other functions.For example, the following snippets trigger the rule:
function createComponent(label) { function MyComponent() { return <div>{label}</div>; } return MyComponent; }function Parent() { function Child() { return <div />; } return <Child />; }Fixed #9941: Biome now emits a
warningdiagnostic when a file exceed thefiles.maxSizelimit.Fixed #9918:
useConsistentTestItno longer panics when applying fixes to chained calls such astest.for()("x", () => {});.Improved the
noGlobalObjectCallsdiagnostic to better explain why calling global objects likeMathorJSONis invalid and how to fix it.Fixed #9901: the command
lint --writeis now idempotent when it's run against HTML-ish files that contains scripts and styles.Improved the
noMultiStrdiagnostic to explain why escaped multiline strings are discouraged and what to use instead.Fixed #9113: Biome now parses and formats
@mediaand other conditional blocks correctly inside embedded CSS snippets.The
noFloatingPromisesrule now detects floating promises through cross-module generic wrapper functions. Previously, patterns likeexport const fn = trace(asyncFn)— wheretracepreserves the function signature via a generic<F>(fn: F): F— were invisible to the rule when the wrapper was defined in a different file.Fixed #9975: Biome now parses nested CSS selectors correctly inside embedded snippets without requiring an explicit
&.Added the nursery rule
useIframeSandbox, which enforces thesandboxattribute foriframetags.Invalid:
<iframe></iframe>
Added the nursery rule
noJsxNamespace, which disallows JSX namespace syntax.Invalid:
<ns:testcomponent />
Improved the
noSelfComparediagnostic to better explain why comparing a value to itself is suspicious and what to use for NaN checks.Added the new nursery rule
useVarsOnTop, which requiresvardeclarations to appear at the top of their containing scope.For example, the following code now triggers the rule:
function f() { doSomething(); var value = 1; }Improved the
noThenPropertydiagnostic to better explain why exposingthencan create thenable behavior and how to avoid it.Improved the
noShorthandPropertyOverridesdiagnostic to explain why later shorthand declarations can unintentionally overwrite earlier longhand properties.Fixed #9744:
useExhaustiveDependenciesno longer reports false positives for variables obtained via object destructuring with computed keys, e.g.const { [KEY]: key1 } = props.Improved the
noRootTypediagnostic to better explain that the reported root type is disallowed by project configuration and how to proceed.Added eslint-plugin-unicorn's
no-nested-ternaryas a rule source fornoNestedTernarynoMisleadingReturnTypenow checks class methods, object methods, and getters in addition to functions.Updated metadata for
biome migrate eslintto better reflect which ESLint rules are redundant versus unsupported versus unimplemented.Improved the
noAutofocusdiagnostic to better explain why autofocus harms accessibility outside allowed modal contexts.Improved performance of noMagicNumbers.
Biome now maps ESLintno-magic-numberssources more accurately duringbiome migrate eslint.Improved the diagnostics for
noConstantConditionto better explain the problem, why it matters, and how to fix it.Added a new nursery rule
noExcessiveSelectorClasses, which limits how many class selectors can appear in a single CSS selector.Added a new nursery rule
useStringStartsEndsWith, which prefersstartsWith()andendsWith()over verbose string prefix and suffix checks.The rule uses type information, so it only reports on strings and skips array lookups such as
items[0] === "a".Fixed the safe fix for
noSkippedTestsso it no longer panics when rewriting skipped test function names such asxit(),xtest(), andxdescribe().Type-aware lint rules now resolve members through
Pick<T, K>andOmit<T, K>utility types.Added the nursery rule
useReactAsyncServerFunction, which requires React server actions to be async.Invalid:
function serverFunction() { "use server"; // ... }Fixed #9910: added support for parsing member expressions in Svelte directive properties. Biome now correctly parses directives like
in:renderer.in|global,use:obj.action, and deeply nested forms likein:a.b.c|global.Fixed #9626:
noUnresolvedImportsno longer reports false positives for named imports from packages that have a corresponding@types/*package installed. For example,import { useState } from "react"with@types/reactinstalled is now correctly recognised.Fixed the safe fix for
noFocusedTestsso it no longer panics when rewriting focused test function names such asfit()andfdescribe().Added the nursery rule
useReduceTypeParameter. It flags type assertions on the initial value passed toArray#reduceandArray#reduceRightand recommends using a type parameter instead.// before: type assertion on initial value arr.reduce((sum, num) => sum + num, [] as number[]); // after: type parameter on the call arr.reduce<number[]>((sum, num) => sum + num, []);
Added extra rule sources from react-xyz.
biome migrate eslintshould do a bit better detecting rules in your eslint configurations.Improved the
noInvalidUseBeforeDeclarationdiagnostic to better explain why using a declaration too early is problematic and how to fix it.Improved the diagnostics for
noRedeclareto better explain the problem, why it matters, and how to fix it.Type-aware lint rules now resolve members through
Partial<T>,Required<T>, andReadonly<T>utility types, preserving optional, readonly, and nullable member flags.
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.