@biomejs/biome
2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @biomejs/biome From 1.9.4 to 2.6.6
75 releases in betweennotes for 71
- 54+
- changes to make
- 0
- advisories fixed
- 873+
- new
- 1306+
- fixes
Counted from 71 of 75 release notes, and the breaking changes of 1 pre-release on the way to a major. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking2.6.2
- Breaking2.5.15
- Breaking2.3.11
- Breaking2.1.4
- Breaking2.1.4
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Security
- 2.5.0
noScriptUrl(recommended) - 2.3.9
This rule disallows the use of
javascript:URLs, which are considered a form ofevaland can pose security risks such as XSS vulnerabilities.
Release by release
- New
Added the new nursery rule
noArrayMethodsOnArguments. It reports calls to array methods on theargumentsobject, which isn't an array, so these calls throw aTypeErrorwhen the code runs. - New
Added the nursery rule
noConstantComparisons, which reports&&and||conditions that can never be true, are always true, or contain a check with no effect. - New
Added the nursery rule
noErasingOperation, which disallows operations with0that always result in zero: multiplying by0, a bitwise AND with0, and dividing0by a number. The other value in these operations has no effect on the result, which usually means the code has a mistake. - New
Added the nursery rule
noNegatedArrayPredicate, which reports negated calls toArray#some()andArray#every()and suggests moving the negation into the callback function.
- New
- New
Added the new nursery rule
noArrayForEach, which reportsforEach()calls that can be written asfor...ofloops. Values known not to be arrays, such as aMapor aSet, are ignored. - New
Added the new nursery rule
noAwaitInPromiseMethods, which reportsawaitinside the array passed toPromise.all(),Promise.allSettled(),Promise.any(), orPromise.race(). Theawaitpauses the code before the method is called, so the promises no longer run at the same time. - New
Added the new nursery rule
noChainedComparison, which reports comparisons chained likea < b < cora === b === c. JavaScript comparesawithbfirst, and then compares the resultingtrueorfalsewithc, so3 > 2 > 1isfalse. - New
Added the nursery rule
noDynamicDelete, which disallows usingdeletewith a property name that is computed at runtime. Fixed property names written as string or number literals are allowed.
- New
- New
Added the new nursery rule
noConsoleSpaces, which reports a leading or trailing space in aconsole.log(),console.debug(),console.info(),console.warn(), orconsole.error()argument that sits next to another argument. These methods already put a space between arguments, so such a space prints twice. - New
Added the new nursery rule
noMagicArrayFlatDepth, which reports number literals other than1passed as the depth ofArray.prototype.flat()unless a comment inside the parentheses explains them. - New
Added the nursery rule
noNull, which reports uses of thenullliteral and suggestsundefinedinstead. Strict comparisons such asfoo === nullare allowed. - New
Added the nursery rule
noReturnArrayPush, which reports code that uses the return value ofpush()orunshift(). These methods return the new length of the array, not the added item or the array.
- New
- New
Added the new nursery rule
noArraySortForMinMax, which reports sorting an array only to read its smallest or largest value. UseMath.min()orMath.max()instead. - New
Added the nursery rule
noBooleanSortComparator, which reports sort comparators that return a boolean instead of a number. For example,array.sort((a, b) => a > b)never puts the first item before the second, so the array isn't sorted correctly. - New
Added the new nursery rule
noEagerArrayMethodsInLoops, which reports.map()and.filter()calls in the header offor...ofloops. These calls build a new array that is only used by the loop. - New
Added the nursery rule
noNewRequire, which disallows callingrequirewithnew, such asnew require("app-header").
- New
- Breaking
Removed the
javascript.parser.gritMetavariablesoption. It was intended for internal use only and had no effect on how Biome parses JavaScript and TypeScript files. Biome now reports it as an unknown key and exits with a configuration error, so remove it from your configuration file. - New
Added a
--gitflag tobiome init. The flag enables Git VCS integration and setsvcs.useIgnoreFiletotruein the generated configuration, even when the command runs outside a Git repository. - New
Added the
biome migrate stylelintcommand. It imports a Stylelint configuration and its ignore settings into your Biome configuration, mapping Stylelint rules to their Biome equivalents. Pass--writeto apply the changes, and--include-inspiredor--include-nurseryto migrate additional rules. - New
Added the new assist action
useGraphqlSortedDefinitions, which sorts the named definitions of a GraphQL document, such as types, type extensions, directives, fragments, and operations.
- Breaking
2.6.0 – 2.6.12 releases, no release note
- Breaking
Removed the
attributesandfunctionsoptions from the nursery rulenoTailwindArbitraryValue. The rule now uses the same Tailwind detection asuseTailwindShorthandClasses. - New
Added the new nursery rule
noReactObjectTypeAsDefaultProp, which disallows array, object, and function values as default props in React components. - New
Added the nursery rule
noSvelteExportLet, which disallows declaring Svelte component props with the legacyexport letsyntax. Use the$props()rune instead. - New
Added a new nursery rule
useLogicalPropertiesthat enforces the use of logical properties in CSS, promoting better internationalization and accessibility practices. The rule supports adirectionoption with"ltr"as the default and"rtl"as the alternative. This is a first rule covering parts of #9034
- Breaking
- New
Added the nursery rule
noReturnInFinally. This rule disallows return statements inPromise.prototype.finally()callbacks, including inside nested blocks and conditional branches. Returns in nested functions are ignored by the rule. - New
Added the nursery rule
noSvelteAtDebugTags, which disallows Svelte's{@debug}tag. - New
Added the nursery rule useConsistentFunctionStyle, which requires a consistent style for defining functions.
- New
Added the new nursery rule
noVueUndeclaredDirectives, which reports custom Vue directives that are not declared by a<script setup>binding, the component'sdirectivesoption, or the rule'sglobalsoption. Closes #11478.
- New
23 other lines we could not sort, mostly version bumps
- 2.3.12
useUniqueArgumentNames->noDuplicateArgumentNames - 2.3.12
useUniqueFieldDefinitionNames->noDuplicateFieldDefinitionNames - 2.3.12
useUniqueGraphqlOperationName->noDuplicateGraphqlOperationName - 2.3.12
useUniqueInputFieldNames->noDuplicateInputFieldNames - 2.3.12
useUniqueVariableNames->noDuplicateVariableNames - 2.3.11
The documentation & rule sources for
lint/complexity/noBannedTypeshave been updated to fix a few oversights. - 2.3.11
Hardened union static-member type flattening in edge cases (e.g. unions containing
unknownor inferred expression types). This keeps inference conservative and avoids unstable type growth innode = node.parent-style loops. - 2.3.11
Improved the diagnostics of nursery rules. Added a message to diagnostics emitted by nursery rules, so that users are aware of nature of nursery rules.
- 2.3.11
Improved the performance of
noRedeclareby eliminating string allocations - 2.3.11
Update useVueDefineMacrosOrder to only run on <script setup> blocks.
261 internal lines (docs, tests, tooling) left out.
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.