@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 new12 fixed1 internal
Release note
Patch Changes
Added the lint rule
noNestedPromises. This rule detects nested.then()or.catch()calls that could be refactored into flat promise chains.// Invalid: nested promise that can be flattened doThing().then(function () { return doOtherThing().then(console.log); }); // Valid: flat promise chain doThing() .then(() => doOtherThing()) .then(console.log);The rule intelligently allows nesting when the inner callback references variables from the outer scope, as these cases cannot be safely flattened.
Added the nursery rule
noUselessReturn. The rule reports redundantreturn;statements that don't affect the function's control flow.// Invalid: return at end of function is redundant function foo() { doSomething(); return; }Reverted a behavior change in
useExhaustiveDependenciesthat was accidentally included as part of the #8802 fix. The change made method calls on objects (e.g.,props.data.forEach(...)) report only the object (props.data) as a missing dependency instead of the full member expression. This behavior change will be reconsidered separately.Fixed #8790: The
noAssignInExpressionsrule no longer reports a false positive when an assignment is used as the expression body of an arrow function (e.g.,const f = b => a += b).Fixed #8518, where globally excluded files in a monorepo were still being processed when using
"extends": "//".When a package-level configuration extends the root configuration with
"extends": "//", glob patterns (such as those infiles.includes) are now correctly resolved relative to the project root directory, instead of the current workspace directory.Fixed #8967. useExhaustiveDependencies no longer reports false positives for variables destructured from a rest pattern.
Fixed #9020: When
javascript.jsxRuntimeis set toreactClassic,noUnusedImportsanduseImportTyperules now allow importing theReactidentifier from a package other thanreact. This aligns the behavior withtsc(--jsx=react), which also allows importingReactfrom any package.Fixed #8605: Text expressions in some template languages (
{{ expr }}or{ expr }) at the top level of an HTML document no longer causes panicking.Fixed #8917
useExhaustiveDependencies now correctly detects JSX component identifiers as hook dependencies.Updated the useJsxKeyInIterable rule to not run inside Map constructors
Fixed #4888.
noUnusedImports now addsexport {}when removing the last import in a TypeScript file to prevent it from becoming an ambient module. This does not apply to embedded scripts in Vue, Svelte, or Astro files, which are already in a module context.Added eslint migration metadata for the rules
@typescript/no-var-requires,@typescript/keyword-spacing,@typescript/func-call-spacing,vue/keyword-spacing,vue/func-call-spacing, andunicorn/empty-brace-spaces,Fixed #8845. Now
useGenericFontNamesdoesn't trigger whenfontis declared inside the@supportsat-rule.Fixed #8476.
useAwaitThenable no longer reports false positives forawaiton call expressions whose return type cannot be resolved (e.g., cross-module function calls to Node.js builtins or npm packages).Fixed #8645.
useAwait no longer reportsasyncgenerator functions that useyield*, sinceyield*in an async generator delegates to anAsyncIterableand requires theasyncmodifier.
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.