Biome 2.6.10 came out on 3 December 2026. It’s a patch release in version number only. The changelog adds more than thirty new nursery lint rules. There are general JavaScript checks, a whole set of rules for Convex backends, and rules for TanStack Query, Vue and Tailwind. It also says commands like biome check, biome lint and biome format are 14% to 18% faster.
Nursery rules are opt-in and still settling, so they won’t suddenly fail your CI. That makes this a good time to try the useful ones. We installed @biomejs/[email protected], turned on seven of the general-purpose rules, and ran them against a small demo file. Here’s what each one catches and how the fixes behave.
Install or upgrade
npm i -D -E @biomejs/[email protected]
npx biome --version
If you’re starting fresh, npx biome init creates a biome.json. Existing projects keep their config. Nursery rules only run when you enable them.
Enable the new rules
Add the rules you want under linter.rules.nursery. We used "error" for rules that point to real bugs and "warn" for style and readability:
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"linter": {
"enabled": true,
"rules": {
"nursery": {
"noCollectionBracketAccess": "error",
"noDuplicateIfBranches": "error",
"noMixedReturns": "error",
"noBreakInNestedLoop": "warn",
"noNegatedComparison": "warn",
"useNegativeIndex": "warn",
"useSetMethods": "warn"
}
}
}
}
Then run:
npx biome lint src
Rules that catch real bugs
noCollectionBracketAccess
This one stops a classic mistake: using square brackets on a Map or Set. That reads or writes a property of the object, not an entry in the collection:
export function cacheUser(user) {
const cache = new Map();
cache[user.id] = user; // ✗ sets a property, not a Map entry
return cache;
}
Biome’s message is clear: “This changes a property of the Map, not one of its entries.” With --write --unsafe, the fix rewrote the line to cache.set(user.id, user);.
noDuplicateIfBranches
This rule reports an if/else if branch that runs the same code as the branch right before it. That’s often a copy-paste slip:
export function label(status) {
if (status === "new") {
return "Open";
} else if (status === "reopened") {
return "Open"; // ✗ same as the branch before it
}
return "Closed";
}
Biome reported: “This branch runs the same code as the branch before it.” It doesn’t offer an automatic fix, because you might want to merge the conditions (status === "new" || status === "reopened") or the second branch might really be wrong.
noMixedReturns
This flags functions where some return statements return a value and others don’t. Callers then get undefined without expecting it:
export function parse(input) {
if (!input) {
return; // returns undefined
}
return input.trim(); // ✗ returns a value
}
The fix is up to you: return null or "" on purpose, or throw.
Readability rules with automatic fixes
noNegatedComparison
This reports an equality comparison that’s negated as a whole:
return !(user.role === "member");
It comes with a safe fix, so plain npx biome lint --write changes it to:
return user.role !== "member";
useNegativeIndex
This catches slice(), at(), subarray(), splice() and toSpliced() calls that subtract from .length:
return items.slice(items.length - 2);
The fix, which is unsafe and needs --unsafe, changed it to items.slice(-2).
useSetMethods
Modern JavaScript has Set.prototype.union(), intersection(), difference(), isSubsetOf() and isDisjointFrom(). This rule spots code that copies Sets into arrays to do the same job:
const admins = new Set(["asha", "ravi"]);
const online = new Set(["ravi", "meera"]);
export const everyone = new Set([...admins, ...online]);
export const onlineAdmins = [...admins].filter((name) => online.has(name));
Biome suggested admins.union(online) and admins.intersection(online). Both are unsafe fixes, and that’s correct. The second line currently gives you an array, while intersection() gives you a Set. If later code uses .length or .map() on the result, accepting the fix blindly would break it. Check the call sites, or wrap the result with [...admins.intersection(online)]. Also make sure the browsers or Node versions you support have the Set methods.
noBreakInNestedLoop
This reports a break without a label inside nested loops, or inside a switch within a loop, where it’s easy to break out of the wrong loop:
for (const row of rows) {
for (const cell of row) {
if (cell === target) {
break; // ! only leaves the inner loop
}
}
}
Use a label (outer: for (...) { ... break outer; }) or move the search into a function that returns early. You can turn on the rule’s checkContinue option to check continue as well.
Safe vs unsafe fixes: what we saw
On our demo file:
npx biome lint --writeapplied only thenoNegatedComparisonfix.npx biome lint --write --unsafealso applied thenoCollectionBracketAccessanduseNegativeIndexfixes.
Run unsafe fixes on a clean Git tree and review the diff, especially for useSetMethods.
Other new rules worth a look
The full changelog has many more. Here are some highlights, as described in the release notes:
- Convex rules such as
noConvexCollectInQuery(use.take()or.paginate()instead of.collect()),useConvexArgsValidator,useConvexAccessControlandnoConvexProcessEnv - TanStack Query:
noTanstackQueryUnstableDepsanduseTanstackQueryQueryOptions - Vue:
noVueComputedPropertyCallandnoVueContentOutsideBlock - Tailwind:
noTailwindLegacyImportant - General:
noArrayReduce,noAmd,noDuplicateExports,noMutableExports,useElseIf,useCustomErrorDefinitionanduseConsistentExistenceIndexCheck
The release also fixes many false positives and formatter bugs, including Markdown formatter issues and a regression where Biome followed symbolic links inside node_modules.
A sensible rollout
- Pin
2.6.10with-Eso everyone on the team runs the same rules. - Enable one or two bug-catching rules as
"error"and the rest as"warn". - Run
npx biome lint --writefor safe fixes. Apply unsafe fixes one rule at a time with review. - Promote rules from warn to error once your codebase passes them.
Takeaway
Biome 2.6.10 is a big batch of new checks in a small version bump. noCollectionBracketAccess, noDuplicateIfBranches and noMixedReturns catch real bugs with almost no noise. noNegatedComparison and useNegativeIndex clean up code automatically. And useSetMethods helps you use modern Set APIs, as long as you check what the fix changes. Upgrade, enable a few rules, and let the faster CLI keep CI quick.
