@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 new22 fixed1 internal
Release note
The section about @biomejs/biome of a note shared by several packages.
Patch Changes
Fix #6485: Handle multiple semicolons correctly in blocks
div { box-sizing: border-box; color: red; }Fixed #6762, Biome now knows that
~/.config/zed/settings.jsonand~/.config/Code/User/settings.jsonallows comments by default.Fixed #6838, where the Biome File Watcher incorrectly watched and stored ignored files, causing possible memory leaks when those files were dynamically created (e.g. built files).
Fixed a bug where the Biome Language Server didn't correctly ignore specific files when
vcs.useIgnoreFileis set totrue.Improved the performance of
noImportCyclesby ~30%.Fixed #6829: Fixed a false positive reported by
useImportExtensionswhen importing a.jsfile that had a matching.d.tsfile in the same folder.Fixed an issue where biome was using the wrong string quotes when the classes string has quotes, resulting in invalid code after applying the fix.
Improved #6172: Optimised the way function arguments are stored in Biome's type inference. This led to about 10% performance improvement in
RedisCommander.d.tsand about 2% on@next/fonttype definitions.Fixed a bug where the Biome Language Server would apply an unsafe fix when using the code action
quickfix.biome.Now Biome no longer applies an unsafe code fix when using the code action
quickfix.biome.Fixed #6719: The
noInvalidUseBeforeDeclarationrule covers additional use cases.Examples:
type Bar = { [BAR]: true }; const BAR = "bar";interface Bar { child: { grandChild: { [BAR]: typeof BAR; enumFoo: EnumFoo } }; } const BAR = "bar"; enum EnumFoo { BAR = "bar", }Biome now considers whether the linter is enabled when figuring out how the project should be scanned. Resolves #6815.
Fixed #6165: Fixed false negative in
noUnusedPrivateClassMembersrule when checking member usage in classesFixed a bug where the root ignore file wasn't correctly loaded during the scanning phase, causing false positives and incorrect expectations among users.
Now, when using
vcs.useIgnoreFile, the the globs specified in the ignore file from the project root will have the same semantics as thefiles.includessetting of the root configuration.Refer to the relative web page to understand how they work.
Fixed #6891: Improved type inference for array indices.
Example:
const numbers: number[]; numbers[42]; // This now infers to `number | undefined`.
Fixed #6796: Fixed a false positive that happened in
noFloatingPromiseswhen calling functions that were declared as part offor ... ofsyntax insideasyncfunctions.Instead, the variables declared inside
for ... ofloops are now correctly
inferred if the expression being iterated evaluates to anArray(support for other iterables will follow later).Invalid example
const txStatements: Array<(tx) => Promise<any>> = []; db.transaction((tx: any) => { for (const stmt of txStatements) { // We correctly flag this resolves to a `Promise`: stmt(tx); } });Valid example
async function valid(db) { const txStatements: Array<(tx: any) => void> = [(tx) => tx.insert().run()]; db.transaction((tx: any) => { for (const stmt of txStatements) { // We don't flag a false positive here anymore: stmt(tx); } }); }Added the rule
noVueReservedProps, resolves #6309.It prevents the use of reserved Vue prop names such as
keyandrefwhich can cause conflicts and unexpected behavior in Vue components.
Invalid example
import { defineComponent } from "vue";
export default defineComponent({
props: ["ref", "key", "foo"],
});<script setup>
defineProps({
ref: String,
key: String,
foo: String,
});
</script>Valid examples
import { defineComponent } from "vue";
export default defineComponent({
props: ["foo"],
});<script setup>
defineProps({ foo: String });
</script>Allow multiple identifiers in ::part() pseudo-element selector.
::part(first second) { }Fixed #6510: The scanner no longer shows diagnostics on inaccessible files unless
--verboseis used.Fixed #6837: Fixed regression with multiple consecutive line suppression comments using instances (like
// biome-ignore lint/correctness/useExhaustiveDependencies(depName): reason).Fixed an issue where
textDocument/codeActionin the LSP could respond with outdated text edits after the workspace watcher observed outdated changes to the file.noFloatingPromiseswill no longer suggest to addawaitkeyword inside synchronous callbacks nested insideasyncfunctions.Fixed #6777: Fixed type inference handling of
thisto avoid infinite recursion.Fixed #6775:
useReadonlyClassPropertiesnow also captures mutations inside function arguments.Example:
class Counter { private counter: number; count() { console.log(this.counter++); const counterString = `${this.counter++}`; } }Fixed a bug where Biome didn't throw any error when
vcs.useIgnoreFileis set totrue, and there wasn't any ignore file read. Now Biome correctly throws an error if no ignore files are found.Fixed #6838: Reduce resource consumption in the Biome Language Server by using non-recursive filesystem watchers instead of recursive ones.
Watchers are responsible for notifying Biome of changes to files in the filesystem. We used to set up a single recursive watcher, but that meant that Biome would receive filesystem notifications for all files in your project, even for ignored folders such as
build/ordist/folders.With this patch, we set up non-recursive watchers only for the folders that are relevant to a project.
Related to this, we also solved an issue where incoming notifications were incorrectly filtered, causing ignored files to be processed and stored in our module graph anyway.
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.