Biome 2.6.6
Biome 2.6.6 arrives on November 6, 2026. The release is a linting patch: ten new nursery rules, no breaking configuration changes, no new formatter output.
- noArrayMethodsOnArguments — Flags array methods such as
reduce()called on theargumentsobject, which is array-like but not an array and throws aTypeErrorat runtime (#12887). - noConstantComparisons — Reports
&&and||conditions that can never be true, are always true, or contain a comparison with no effect, such asstatusCode <= 400 && statusCode > 500(#12877). - noErasingOperation — Catches arithmetic that always collapses to zero: multiplication by
0, a bitwise AND with0, and dividing0by a number (#12876). - noNegatedArrayPredicate — Rewrites
!array.some(fn)and!array.every(fn)into a single predicate with the negation moved into the callback (#12841). - noNumberArgumentOutOfRange — Detects literal arguments to
toString(),toFixed(),toExponential(), andtoPrecision()that fall outside the accepted range and would throw aRangeError(#12888). - noSharedBranchCode — Finds statements repeated at the start or end of every
ifbranch and moves them outside the conditional (#12889). - noSubtractionComparison — Replaces patterns like
a - b > 0with a direct comparison of the two values (#12842). - noSvelteIgnoredUnsubscribe — Reports Svelte store
subscribe()calls whose return value is discarded, leaving no way to stop the subscription and leaking memory (#12866). - noUninvokedArrayCallback — Flags
map()andforEach()called on sparse arrays, where the callback never runs, as innew Array(5).map(...)(#12890). - useNextScriptForGoogleAnalytics — Part of the
nextdomain: raw<script>tags loading Google Analytics or Tag Manager are reported in favor ofGoogleAnalyticsandGoogleTagManagerfrom@next/third-parties/google(#12886).
Update with npm install -D @biomejs/[email protected] and enable individual rules through linter.rules.nursery.