@biomejs/biome
2.6.6 · 6 Nov 2026MIT OR Apache-2.026.4M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 114 releases2.6.6
6 Nov 2026Added 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.function sum() { return arguments.reduce((total, value) => total + value, 0); }Added the nursery rule
noConstantComparisons, which reports&&and||conditions that can never be true, are always true, or contain a check with no effect.if (statusCode <= 400 && statusCode > 500) {}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.const total = price * 0;
Patch Changes
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.function sum() { return arguments.reduce((total, value) => total + value, 0); }Added the nursery rule
noConstantComparisons, which reports&&and||conditions that can never be true, are always true, or contain a check with no effect.if (statusCode <= 400 && statusCode > 500) {}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.const total = price * 0;
Added the nursery rule
noNegatedArrayPredicate, which reports negated calls toArray#some()andArray#every()and suggests moving the negation into the callback function.// Invalid: use `array.every((item) => !isUnicorn(item))` instead. const isMissing = !array.some((item) => isUnicorn(item));
Added the new nursery rule
noNumberArgumentOutOfRange, which reports number literal arguments oftoString(),toFixed(),toExponential()andtoPrecision()that are outside the range the method accepts. These calls throw aRangeErrorat runtime.value.toString(64);
Added the nursery rule
noSharedBranchCode, which reports code that is repeated at the start or end of every branch of anifstatement. That code runs no matter which branch is taken, so it can be moved before or after theifstatement.if (condition) { doSomething(); cleanup(); } else { doSomethingElse(); cleanup(); }Added the new nursery rule
noSubtractionComparison, which reports subtracting two values only to compare the difference with0, and suggests comparing the values directly.if (a - b > 0) {}Added the nursery rule
noSvelteIgnoredUnsubscribe, which reports calls to a store'ssubscribe()method when the returned function is ignored. Without that function, the subscription can never be stopped, which causes a memory leak.<script> import { count } from "./stores.js"; count.subscribe((value) => console.log(value)); </script>Added the new nursery rule
noUninvokedArrayCallback, which reports array methods such asmap()andforEach()called with a callback on an array that only has empty slots. The callback never runs in this case.const list = new Array(5).map(() => createElement());
Added the nursery rule
useNextScriptForGoogleAnalytics, which reports<script>elements that load Google Analytics or Google Tag Manager. Use theGoogleAnalyticsandGoogleTagManagercomponents from@next/third-parties/googleinstead, which load these scripts after the page becomes interactive.<script async src="https://www.googletagmanager.com/gtag/js?id=G-XYZ" />
The rule belongs to the
nextdomain.Added the new nursery rule
usePackageJsonCpu, which reportspackage.jsonfiles that have nocpufield. Thecpufield lists the processor types that the package supports.The following
package.jsonfile satisfies the rule:{ "name": "my-package", "version": "1.0.0", "cpu": ["x64", "arm64"] }Added the nursery rule
usePackageJsonEngines, which reportspackage.jsonfiles that have noenginesfield.A
package.jsonpasses the rule once it declares the field:{ "name": "my-package", "engines": { "node": ">=20" } }Fixed #12954, where configuring rules in groups with more than 256 rules could enable or disable the wrong rule.
Improved the performance of linting. Each lint pass now spends less time stepping over syntax nodes that no enabled rule looks at.
Improved the performance of CSS linting. Rules that compare selectors, such as
noDescendingSpecificityandnoDuplicateSelectors, now make fewer memory allocations.Fixed
useGenericFontNamesreportingfont-familyinside@font-palette-values. There,font-familynames the font families the palette applies to, so it doesn't take a generic family.@font-palette-values --palette { font-family: Bixa; override-colors: 0 red; }Fixed #12073:
useExhaustiveSwitchCasesnow reports non-exhaustive switches over values read fromfor...ofloops overArray.prototype.entries(),Map, andSet, and over properties of array elements indexed by anumbervariable.noMisusedPromisesnow also reports Promise-returning callbacks passed to array methods such asfindandevery.Fixed #12957: Biome now correctly parses SCSS negative interpolation list items as separate values instead of an invalid subtraction operator.
-margin: -#{$s} - #{$s} - #{$s} auto; +margin: -#{$s} -#{$s} -#{$s} auto;
What's Changed
type_inference: Remove lowering override for Array type
2.6.5
4 Nov 2026- Breaking
Added the nursery rule
noVueDeprecatedFunctionalTemplate, which reports thefunctionalattribute on the<template>of a Vue component. Vue 3 no longer supports this attribute.<template functional> <div>{{ props.message }}</div> </template> 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.array.forEach((element) => { bar(element); });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.Promise.all([await promise, anotherPromise]);
Patch Changes
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.array.forEach((element) => { bar(element); });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.Promise.all([await promise, anotherPromise]);
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.if (a < b < c) {}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.delete container[name];
Added the nursery rule
noLateEventControl, which reports calls topreventDefault(),stopPropagation(), andstopImmediatePropagation()that run after the browser has finished handling the event, where they have no effect.element.addEventListener("click", async (event) => { await save(); event.preventDefault(); });Added the nursery rule
noMapSpread, which disallows spreading objects or arrays in the values returned bymap()andflatMap()callbacks. Each spread copies a whole object or array for every item, which is slow for large arrays. Its unsafe fix replaces an object that starts with a spread withObject.assign().const users = getUsers(); const rows = users.map((user) => ({ ...user, role: getRole(user) }));Added the nursery rule
noMismatchedMapKey, which reportsget()andset()calls that use a different key than thehas()check before them. Checking one key and then using another is usually a copy-paste mistake.if (map.has(key)) { map.get(otherKey); // reported }Added the nursery rule
noMissingScssInterpolation, which disallows Sass variables and function calls in custom property values without#{}interpolation. Sass copies these values into the CSS unchanged, so the browser receives$gapormath.div(8px, 2)instead of their results. Its unsafe fix wraps variables in#{}.:root { --gap: $gap; --half: math.div(8px, 2); }Added the nursery rule
noMissingThrow, which reports errors that are created withnewbut never thrown. Its unsafe fix adds the missingthrowkeyword.function check(value) { if (!value) { new Error("Missing value"); } }Added the new nursery rule
noObjectLiteralComparison, which reports comparisons with an empty object{}or an empty array ``. These comparisons never check whether a value is empty, because objects and arrays are compared by reference.if (value === {}) {}Added the new nursery rule
noPlaywrightUnsafeReferences, which reports functions passed topage.evaluate()orpage.addInitScript()that use variables declared outside of them. Playwright runs these functions in the browser page, where those variables don't exist.const x = 7; await page.evaluate(() => x * 2); // reported: `x` must be passed as an argument
Added the nursery rule
noPseudoElementInFunctionalPseudoClass, which disallows pseudo-elements inside:is(),:where(),:not()and:has(). Browsers drop these selectors, so the styles never apply to the pseudo-element..card:is(::before, ::after) { content: ""; }Added the new nursery rule
noSinglePromiseInPromiseMethods, which reports an array with a single element passed toPromise.all(),Promise.any(), orPromise.race(). The rule offers a fix that awaits the value directly or usesPromise.resolve().const result = await Promise.all([promise]);
Added the nursery rule
noSvelteBindValueOnCheckableInputs, which reportsbind:valueon checkbox and radio inputs in Svelte files. Users change whether these inputs are checked, not theirvalue, sobind:valuedoes not track their choice.<input type="checkbox" bind:value={accepted} />Added the new nursery rule
noSyncMethods, which reports calls to functions whose names end withSync, such asfs.readFileSync(). These calls block the program until they finish. TheallowAtRootLeveloption allows them outside of functions, and theignoreoption allows specific function names.const contents = fs.readFileSync("data.txt");Added the nursery rule
noTanstackQueryVoidQueryFn, which disallows TanStack Query functions that don't return any data. TanStack Query doesn't acceptundefinedas the data of a query, so the query fails with an error.import { useQuery } from "@tanstack/react-query"; useQuery({ queryKey: ["todos"], queryFn: async () => { await fetch("/api/todos"); }, });The rule belongs to the
tanstackQueryandtypesdomains.Added the nursery rule
noUnnecessaryStringTrim, which reportstrim()calls beforestartsWith()orendsWith()when only one side of the string matters. UsetrimStart()ortrimEnd()instead.value.trim().startsWith("-");Added the nursery rule
noUselessAwait, which reportsawaiton values that are never promises, such as literals, arrays, and the results of comparisons.await [fetchUser(), fetchPosts()];
Added the new nursery rule
noUselessLengthCheck, which reports array length checks that don't change the result: a check that the array is empty next toevery(), a check that it isn't empty next tosome(), or a check that it isn't empty around afor...ofloop over the same array.if (array.length > 0 && array.some(Boolean)) {}Added the new nursery rule
noUselessTypeAssertion, which reports type assertions that don't change the type of an expression, such as a non-null assertion on a value that can't benullorundefined.function double(value: number): number { return value! * 2; }Added the nursery rule
noVueChildContent, which disallows content inside elements that usev-htmlorv-text. These directives replace the content of their element, so Vue discards anything written there.<template> <div v-html="html">Loading...</div> </template>
Added the new nursery rule
noVueDeprecatedConfigKeyCodes, which reports uses ofVue.config.keyCodes. Vue 3 removed this option, so custom key names defined with it no longer work.Vue.config.keyCodes = { f1: 112 };Added the nursery rule
noVueDeprecatedDestroyedLifecycle, which reports thebeforeDestroyanddestroyedlifecycle hooks in Vue components. Vue 3 renamed them tobeforeUnmountandunmounted, and no longer calls hooks with the old names.<script> export default { destroyed() {}, }; </script>Added the nursery rule
noVueDeprecatedEventsApi, which reports calls to the$on,$off, and$onceinstance methods in Vue components. Vue 3 removed these methods, so calling them throws an error.<script> export default { mounted() { this.$on("start", handler); // reported }, }; </script>- Breaking
Added the nursery rule
noVueDeprecatedFunctionalTemplate, which reports thefunctionalattribute on the<template>of a Vue component. Vue 3 no longer supports this attribute.<template functional> <div>{{ props.message }}</div> </template> Added the nursery rule
noVueDeprecatedHtmlElementIs, which disallows theisattribute on HTML elements in Vue templates. Vue 3 no longer renders a component in place of these elements, unless the value starts withvue:.<template> <tr is="my-row"></tr> </template>
Added the nursery rule
noVueDeprecatedInlineTemplate, which disallows theinline-templateattribute on Vue components. Vue 3 removed this feature, so the content between the component's tags is no longer used as its template.<template> <my-component inline-template> <div>{{ message }}</div> </my-component> </template>Added the nursery rule
noVueDeprecatedModelDefinition, which reports themodeloption in Vue components. Vue 3 ignores this option, sov-modelon the component always uses themodelValueprop and theupdate:modelValueevent.<script> export default { model: { prop: "checked", event: "change", }, }; </script>Added the nursery rule
noVueDeprecatedPropsDefaultThis, which reportsthisinside the function that computes the default value of a Vue prop. Vue doesn't give this function access to the component, sothisdoesn't point to it. Read other props from the function's first argument instead.<script> export default { props: { size: Number, sizes: { type: Array, default() { return [this.size]; }, }, }, }; </script>Added the nursery rule
noVueDeprecatedSlotAttribute, which reports theslotattribute in Vue templates. Vue 3 no longer uses this attribute to fill named slots, so usev-slot(or#) on a<template>element instead.<template> <MyComponent> <template slot="header">Title</template> </MyComponent> </template>Added the new nursery rule
noVueDeprecatedVBindSync, which reports the.syncmodifier on Vuev-binddirectives. Vue 3 removed this modifier, so the rule suggestsv-modelwith the same argument instead.<MyComponent :title.sync="pageTitle" />
Added the new nursery rule
noVueDeprecatedVOnNativeModifier, which disallows the.nativemodifier on Vue'sv-ondirective. Vue 3 removed this modifier.<MyComponent @click.native="onClick" />
Added the new nursery rule
noVueExcessiveProps, which reports Vue components that declare more props than themaxPropsoption allows. The default limit is10.<!-- With "maxProps": 2 --> <script setup lang="ts"> defineProps<{ title: string; subtitle: string; icon: string }>(); // reported </script>Added the nursery rule
noVueLoneTemplate, which reports<template>elements inside a Vue template that don't usev-if,v-else-if,v-else,v-for, orv-slot. Vue renders these as regular HTML<template>elements, so their content isn't shown.<template> <template> <p>Hello</p> </template> </template>Added the new nursery rule
noVueMixin, which reports themixinsoption in Vue components. In Vue 3, composables are the recommended way to share logic between components. The rule is recommended and part of thevuedomain.<script> export default { mixins: [counterMixin], }; </script>Added the new nursery rule
noVueMultipleObjectsInClass, which reports:classarrays in Vue templates that contain more than one object. Merge the conditional classes into a single object instead.<template> <div :class="[{ active: isActive }, { disabled: isDisabled }]" /> </template>Added the nursery rule
noVueRefObjectReactivityLoss, which reports reads of a Vue ref's value that run only once, in the same function that creates the ref. Such a read copies the current value, and the copy doesn't update when the ref changes.import { ref } from "vue"; const count = ref(0); const doubled = count.value * 2;Added the nursery rule
noVueRestrictedCallAfterAwait, which reports calls to configured functions that come after anawaitin a Vue component'ssetup()function.For example, with
{ "functions": [{ "module": "vue-i18n", "path": "useI18n" }] }, the following call is reported:<script> import { useI18n } from "vue-i18n"; export default { async setup() { await fetchUser(); const { t } = useI18n(); return { t }; }, }; </script>Added the nursery rule
noVueRestrictedVOn, which reportsv-onevent listeners that are disallowed through thelistenersoption. An entry can match an event name, a set of modifiers, and an element. For example, with{ "listeners": [{ "event": "click", "element": "MyButton" }] },<MyButton @click="onClick" />is now reported.Added the new nursery rule
noVueTemplateKey, which disallows thekeyattribute on<template>elements in Vue files. Akeyon a<template>that also usesv-foris still allowed.<template> <template :key="item.id"><div /></template> </template>
Added the new nursery rule
noVueTemplateShadow, which disallowsv-forandv-slotvariables that hide a variable with the same name from an outer scope of a Vue template.<template> <div v-for="item in groups"> <span v-for="item in item.children">{{ item }}</span> </div> </template>Added the new nursery rule
noVueTextareaMustache, which disallows{{ }}text interpolation inside a Vue<textarea>. Vue doesn't support it there; usev-modelinstead.<template> <textarea>{{ message }}</textarea> </template>Added the new nursery rule
noVueThisInBeforeRouteEnter, which reportsthisin thebeforeRouteEnternavigation guard of a Vue component. Vue Router calls this guard before it creates the component, sothisisundefinedthere.<script> export default { beforeRouteEnter(to, from, next) { this.loadUser(to.params.id); // reported next(); }, }; </script>Added the nursery rule
noVueThisInTemplate, which reportsthisin Vue templates. Templates can read the properties of the component directly, sothis.textcan be written astext:<template> <p>{{ this.text }}</p> </template>Added the new nursery rule
noVueUndeclaredEmits, which reports events that a Vue component emits without declaring them in theemitsoption or indefineEmits().<script setup> const emit = defineEmits(["change"]); emit("close"); // reported: "close" is not declared </script>Added the nursery rule
noVueUndeclaredProperties, which reports names that a Vue component uses but doesn't declare, in its template, inthis.name, and inprops.name.<script setup> const count = 0; </script> <template> <!-- `cnt` isn't declared --> <p>{{ cnt }}</p> </template>Added the new nursery rule
noVueUndeclaredSlots, which reports<slot>elements in Vue components written in TypeScript when the slot isn't declared withdefineSlots()or with theslotsoption.<script setup lang="ts"> defineSlots<{ default(props: { msg: string }): any; }>(); </script> <template> <slot name="footer" /> <!-- reported --> </template>Added the new nursery rule
noVueUselessTemplateAttributes, which reports attributes and directives that have no effect on a<template>element withv-if,v-else-if,v-else,v-for, orv-slotin Vue files. Vue renders only the content of such an element, so it ignores the other attributes.<template> <template v-if="visible" class="heading">Title</template> </template>
Added the nursery rule
noVueUselessVBind, which reportsv-binddirectives whose value is a fixed string. A plain attribute does the same thing.<template> <div :id="'foo'" /> <!-- reported, use id="foo" instead --> </template>
Added the nursery rule
noVueVForTemplateKeyOnChild, which reports akeyplaced on a child element of a<template v-for>instead of on the<template>tag.<template> <template v-for="todo in todos"> <TodoItem :key="todo.id" /> </template> </template>Added the nursery rule
useAccessorPairs. The rule reports setters that have no matching getter in object literals, classes, and property descriptors.const user = { set name(value) { this._name = value; }, };Added the new nursery rule
useObjectFromEntries, which reports code that builds an object from a list of key-value pairs withreduce(), afor...ofloop, or_.fromPairs()instead ofObject.fromEntries(). Thefunctionsoption adds other helper functions to report.const object = pairs.reduce((object, [key, value]) => ({ ...object, [key]: value }), {});Added the new nursery rule
useSetSize, which reports code that copies aSetinto an array only to read the array'slength, and suggests reading thesizeproperty of theSetinstead.const uniqueCount = [...new Set(userIds)].length;
Added the nursery rule
useSvelteStoreInitialValue, which requireswritable(),readable(), andderived()stores fromsvelte/storeto be created with an initial value.import { writable } from "svelte/store"; export const count = writable();Added the nursery rule
useTailwindVariablesShorthandfor JavaScript and HTML. It reports Tailwind CSS classes that read a CSS variable with[var()], and fixes them to the shorthand that Tailwind CSS v4 added.<div className="bg-[var(--brand)]" />; // use `bg-(--brand)`
Added the nursery rule
useTanstackQueryStableQueryClient, which reports a TanStack QueryQueryClientcreated inside a React component or custom hook. Such a client is created again on every render, and its cache starts empty each time.import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; function App() { const queryClient = new QueryClient(); return <QueryClientProvider client={queryClient}><Home /></QueryClientProvider>; }Added the nursery rule
useVueBlockOrder, which enforces the order of the top-level blocks in Vue components. By default,<script>and<template>blocks come first, in any order, followed by<style>blocks. The order can be changed with theorderoption.<style></style> <script></script>
Added the nursery rule
useVueBooleanPropTypeFirst, which requiresBooleanto come first in the list of types of a Vue prop. WhenStringcomes beforeBoolean, a prop written in a template without a value is set to an empty string instead oftrue.<script setup> defineProps({ disabled: [String, Boolean], }); </script>Added the nursery rule
useVueComputedPropertyReturn, which requires the getters of Vue computed properties to return a value on every path.<script setup> import { computed, ref } from "vue"; const count = ref(0); const double = computed(() => { count.value * 2; // reported: the getter never returns a value }); </script>Added the new nursery rule
useVueConsistentBooleanPropStyle, which enforces a consistent style for Vue component props set totrue. By default, it requires the shorthand form; thestyleoption can require the longhand form instead.<template> <MyComponent :disabled="true" /> </template>
Added the new nursery rule
useVueConsistentDefineEmitsDeclaration, which enforces one declaration style fordefineEmitsin<script setup lang="ts">. By default, events must be declared with a type. Thestyleoption can instead require each event to be a property of that type, such aschange: [id: number], or require an argument, such asdefineEmits(["change"]).<script setup lang="ts"> const emit = defineEmits(["change", "update"]); </script>
Added the nursery rule
useVueConsistentPropNameCasing, which requires prop names in Vue components to use one casing style. By default, prop names must be in camelCase. Thecasingoption switches the rule to snake_case.<script setup> defineProps({ greeting_text: String, }); </script>Added the nursery rule
useVueConsistentVForDelimiter, which requires the same word,inorof, between the item and the list in every Vuev-fordirective. The default isin, and thedelimiteroption switches it toof.<!-- reported by default --> <div v-for="item of items"></div>
Added the nursery rule
useVueConsistentVSlotStyle, which enforces one style for Vue slots:#name,v-slot:name, orv-slotfor the default slot. By default, it expectsv-sloton a component and#on<template>elements.<template> <MyComponent> <template v-slot:header>Title</template> </MyComponent> </template>Added the nursery rule
useVueDefaultExport, which reports a<script>block of a Vue component that has no default export, when the file has no<script setup>block.<script> const foo = "foo"; </script>
Added the nursery rule
useVueDefaultProp, which reports optional props of Vue components that have no default value. Props that only acceptBooleanare not reported.For example, the following component doesn't say what
sizeis when a parent component leaves it out:<script setup> defineProps({ size: Number, }); </script>Added the nursery rule
useVueEmitValidator, which requires a validator function for each event declared in theemitsoption or indefineEmits().<script setup> // Reported: the event "change" has no validator function. defineEmits(["change"]); </script>
Added the new nursery rule
useVueEmitsValidatorReturn, which reports Vue event validators that never return a true value. Vue prints a warning in development mode each time such an event is emitted.<script setup> defineEmits({ submit(payload) { payload.email.includes("@"); }, }); </script>Added the new nursery rule
useVueMacroVariableName, which requires specific variable names for the results ofdefineProps(),defineEmits(),defineSlots(),useSlots()anduseAttrs()in Vue<script setup>blocks. The names can be changed with the rule's options.<script setup> const propsDefined = defineProps({ msg: String }); // reported, should be `props` </script>Added the nursery rule
useVueOneComponentPerFile, which reports files that define more than one Vue component. The rule counts<script setup>blocks,export default { ... }in.vuefiles, anddefineComponent()andcreateApp()calls that define a component in place with an options object or a setup function. It doesn't report the main component of a.vuefile.<script setup> import { defineComponent, h } from "vue"; const Badge = defineComponent({ render: () => h("span", "New"), }); </script>Added the new nursery rule
useVuePropTypeConstructor, which reports Vue prop types that aren't constructors, such as a type name written as a string.<script> export default { props: { size: 'Number', // reported, use `Number` instead }, }; </script>Added the nursery rule
useVueRenderReturn, which requires therenderfunction of a Vue component to return a value on every path.The following example is invalid because the
renderfunction returns nothing whenthis.visibleisfalse:<script> import { h } from "vue"; export default { render() { if (this.visible) { return h("div", "hello"); } }, }; </script>Added the nursery rule
useVueSeparateStaticClass, which reports class names in a Vue:classbinding that always apply, such asheaderin<div :class="['header', theme]">. These classes belong in the plainclassattribute.Added the nursery rule
useVueSingleEventPayload, which reports Vue component events that are emitted or declared with more than one value. A listener written inline in a template, such as@change="onChange($event)", only receives the first value.<script setup> const emit = defineEmits(["change"]); emit("change", value, extra); </script>Added the new nursery rule
useVueSlotNameCasing, which enforces a consistent casing for the names of<slot>elements in Vue templates. Slot names must be in camelCase by default. Thecasingoption can require kebab-case or a single lowercase word instead.<template> <slot name="foo-bar" /> </template>
Added the nursery rule
useVueSlotsAsFunctions, which reports slots inthis.$slotsthat are used as their content instead of being called. In Vue 3, each slot is a function that returns its content.export default { render() { return this.$slots.default.filter(isVisible); // reported }, };Thanks @Object,! - Added the new nursery rule
useVueTypedObjectProps, which reports Vue props declared withObjectorArraywithout a TypeScript type in TypeScript files and Vue files with<script lang="ts">.<script setup lang="ts"> defineProps({ // reported items: Array as PropType<string[]>, }); </script>Added the nursery rule
useVueValidAttributeName, which reports invalid attribute names in Vue templates, including names bound withv-bind. Attributes on components aren't checked.<template> <p 0abc :-def="value"></p> </template>
Added the nursery rule
useVueValidDefaultProp, which requires the default value of a Vue prop to match the type of the prop. Default objects and arrays must also be returned from a function, so that each component instance gets its own copy.<script> export default { props: { count: { type: Number, default: "zero" }, // reported items: { type: Array, default: [] }, // reported }, }; </script>Added the nursery rule
useVueValidDefineOptions, which reports invalid calls to Vue'sdefineOptions()macro in<script setup>. It reports a call that is repeated, that has no options or has type arguments, that declaresprops,emits,expose, orslots, or that uses variables declared in<script setup>.<script setup> const options = { name: "Foo" }; defineOptions(options); </script>Added the new nursery rule
useVueValidNextTick, which reports VuenextTickcalls that don't wait for Vue to update the page. The rule is recommended and part of the Vue domain.import { nextTick } from "vue"; nextTick(); // reported: the Promise is ignored nextTick.then(callback); // reported: `nextTick` isn't calledFixed #12672: Astro and Svelte formatting now preserves comments and whitespace inside preformatted elements such as
<pre>and<textarea>.-<pre><code>Hello</code></pre> +<pre> + <!-- hello --> + <code>Hello</code> +</pre>
Improved #2730: Biome now reports the active analyzer rule and source range when a rule panics, and suggests disabling the rule as a workaround.
Fixed #12739, #12741, and #12742: the Markdown formatter now adds a blank line between a top-level paragraph and a header, fenced code block, list, or blockquote that directly follows it, matching Prettier.
Some text: + - bullet 1 - bullet 2
Added the nursery rule
useTanstackQueryInfiniteQueryPropertyOrder, which enforces the orderqueryFn,getPreviousPageParam,getNextPageParamin the options of TanStack Query infinite queries. TanStack Query infers types from this order.import { useInfiniteQuery } from "@tanstack/react-query"; useInfiniteQuery({ getNextPageParam: (lastPage) => lastPage.nextId, queryFn: ({ pageParam }) => fetchProjects(pageParam), });Fixed #12738: the Markdown formatter now collapses consecutive blank lines between blocks into a single blank line.
Some paragraph. - - ## Next section
Fixed
.editorconfigsection globs that skipped the character following a bracket expression. For example,[{[ab],c}.json]now matchesa.json,b.json, andc.json.Fixed #11548: The
typeMemberselector ofuseNamingConventionno longer applies to TypeScript type parameters.Added the nursery rule
noExcessiveNestedBlocks, which reports blocks nested deeper than the configured maximum (4 by default). It checksif,switch,try, and loop statements in JavaScript, and nested rules and at-rules in CSS.Fixed #8094: Biome's language server now skips unchanged dynamic capability registrations, preventing duplicate watched-file notifications in affected editors.
Fixed #12683:
.editorconfigsection globs with nested braces, such as[{*.{js,json},biome.jsonc}], are now supported instead of being ignored.Fixed a slowdown in
biome lint,biome checkandbiome formatthat grew with the number of files: looking up an open file took longer after every file Biome had already processed. Large projects are processed faster again.Fixed the GritQL formatter treating a single line break between list items as a blank line. Formatting a broken list no longer adds blank lines between its items, and blank lines from the source are still kept.
$x <: [ - `1`, - - `2`, + `1`, `2`, `3` ]Fixed #12862: Biome now applies the options under the top-level
gritconfiguration key. Previously, options such asgrit.formatter.lineWidthandgrit.formatter.enabledwere ignored, and Grit files were formatted with the globalformattersettings.Fixed
noVueUndeclaredDirectivesnot reporting undeclared custom directives in components that export their options withexport { options as default }.<script> const options = {}; export { options as default }; </script> <template> <div v-highlight></div> </template>Fixed the formatter removing the parentheses that end an optional chain when a non-null assertion, type arguments or more parentheses follow them. The output either short-circuited the rest of the chain, as in
a?.b!.cfor(a?.b)!.c, or didn't parse, as withnew a?.b!(), a template tag or an assignment target.- a?.b!.c; + (a?.b)!.c; - new a?.b!(); + new (a?.b)!(); - a?.b`template`; + (a?.b)`template`;
Fixed #12820:
usePlaywrightValidDescribeCallbackno longer reports an anonymoustest.describe(callback)as a missing callback.test.describe(() => { test.use({ colorScheme: "dark" }); });Fixed #12766:
usePlaywrightValidDescribeCallbackno longer reportstest.describe(title, details, callback). The rule now validates the last argument as the callback, as the original ESLint rule does.test.describe("suite", { tag: "@smoke" }, () => {});Fixed #12882: the Tailwind class parser no longer reports a parse error for unknown utilities with a dashed name and an arbitrary value or a CSS variable, such as
foo-bar-[1px]orfoo-bar-(--my-var).useTailwindSortedClassessorts these classes first, like other unknown classes.Fixed #12623: the safe fix of
useConsistentTestItno longer leaves an unused import when applied to every call in a file. When all calls to an imported test function are renamed, the import is now replaced with an alias, such astest as it, instead of keeping the original specifier. When the original specifier is kept, the alias is now added astest, test as itinstead oftest , test as it.Improved the performance of grit plugins that use regexes.
Fixed #12757: the Markdown formatter no longer turns an indented paragraph line that starts with
-,1.,#, or>into a list, heading, or blockquote. Such a line now joins the previous line, matching Prettier.-- Item - - Nested item +- Item - Nested item continuation line
Fixed #12726:
useMathMinMaxnow recognizes directly listed nonnumeric elements in array reductions, such as["foo", "bar"].reduce((a, b) => a > b ? a : b). This also covers Date values and local constant arrays used only by reductions, including parentheses and TypeScript assertions. Spread elements and other unclassified inputs retain their existing behavior.Added the new nursery rule
noInvalidRemoveEventListener, which reports calls toremoveEventListener()that pass an inline function or the result of.bind(). These create a new function, so the listener that was added is never removed.window.removeEventListener("click", listener.bind(window));Fixed #12851: a plugin that throws or fails to run now reports an error diagnostic instead of an info diagnostic, so
biome lintandbiome checkexit with a non-zero code.Improved the performance of JavaScript plugins that read
node.kindortoken.kind.Fixed #12909: Biome no longer crashes with an access violation when formatting, linting or checking files on Windows ARM64.
Fixed the code fixes of
noMisusedPromises,noFloatingPromises, andnoVueDataObjectDeclarationduplicating comments attached to the wrapped expression. For example, thenoFloatingPromisesfix for an array of promises preceded by a comment no longer copies that comment intoPromise.all(...).Fixed #12768: the Markdown formatter no longer splits a blockquote in two when an empty
>line separates its list items.> - one > - two - +> > - three
Fixed #12767: the Markdown formatter no longer moves a list item out of a blockquote when the item follows a nested list item. The formatter also keeps the
>of a line that directly follows a list inside a blockquote and starts a nested blockquote, a heading, or a different list.> - one > - nested - - two +> - two
Fixed #12703: the Markdown formatter no longer indents the empty
>line between a list and a paragraph in a blockquote. Formatting again no longer moves the paragraph out of the quote.> - item one > continued. - > +> > Paragraph line one > line two.
Expanded
useLogicalPropertiesto report multi-value physical shorthands and logical longhand pairs that can be combined. Dynamic shorthands such aspadding: var(--spacing) 2pxare also reported without an automatic fix because the variable may supply multiple values.Fixed the SCSS formatter joining comma-separated multi-value declarations onto one line. SCSS now prints them one value per line, as the CSS formatter and Prettier do.
.a { - transition: opacity 1s, color 2s; + transition: + opacity 1s, + color 2s; }Added
node.descendants(kinds)andnode.walk(kinds, enter, exit)to JavaScript plugins. They find the nodes inside a node whose kind is in a set created withnodeKinds(), and are much faster than visiting every node withnode.children().const CALLS = nodeKinds("JS_CALL_EXPRESSION"); for (const call of root.descendants(CALLS)) { registerDiagnostic(call, "information", "Found a call."); }Added the
allowBlackAndWhiteoption tonoTailwindRawColors. It defaults totrue. When set tofalse, the rule also reports classes that useblackorwhite, such asbg-whiteandtext-black/50, and suggests similar colors from your theme whentailwind.stylesheetis set.{ "options": { "allowBlackAndWhite": false } }Fixed #12724: when
proseWrapis"always"or"never", the Markdown formatter now wraps the text inside emphasis, strong emphasis, and strikethrough like the surrounding prose, instead of keeping their source line breaks and forcing line breaks around them. Text inside block quotes keeps its current formatting. With alineWidthof 50:- Some words before the strong text, - **stop and tell - them** - after the strong text. + Some words before the strong text, **stop and tell + them** after the strong text.
Fixed
.editorconfigsection globs with unbalanced braces. As in the EditorConfig reference implementation, all braces in such a glob are now matched literally, so[{a,b}}.json]only matches a file named{a,b}}.json.
What's Changed
lint: Add noVueDeprecatedSlotScope
lint: Add noVueDeprecatedPropsDefaultThis
lint: Add noVueDeprecatedModelDefinition
lint: Add noVueDeprecatedConfigKeyCodes
lint: Add noVueDeprecatedInlineTemplate
lint: Add noVueDeprecatedHtmlElementIs
lint: Add noVueDeprecatedDestroyedLifecycle
lint: Add noVueDeprecatedVBindSync
lint: Add noVueDeprecatedVOnNativeModifier
lint: Add noVueDeprecatedFunctionalTemplate
lint: Add noVueDeprecatedEventsApi
lint: Add noVueDeprecatedSlotAttribute
2.6.4
28 Oct 2026- Breaking
Added the new nursery rule
noVueDeprecatedScopeAttribute, which reports thescopeattribute on<template>elements in Vue files. Vue no longer supports this attribute, so usev-slotto receive slot props instead.<template> <ListComponent> <template scope="props">{{ props.title }}</template> </ListComponent> </template> 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.console.log("abc ", "def");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.const items = array.flat(2);
Patch Changes
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.console.log("abc ", "def");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.const items = array.flat(2);
Added the nursery rule
noNull, which reports uses of thenullliteral and suggestsundefinedinstead. Strict comparisons such asfoo === nullare allowed.let foo = null;
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.function add(item) { return items.push(item); }Added the nursery rule
noUnreadableIife, which reports arrow functions that are called right where they are defined and whose body is wrapped in parentheses.const foo = (bar => (bar ? bar.baz : baz))(getBar());
Added the nursery rule
noUselessRecursion, which reports functions that return a call to themselves when a loop can do the same work. Too many nested calls can crash the program with a stack overflow error.function findRoot(node) { if (node.parent) { return findRoot(node.parent); } return node; }Added the nursery rule
noVueComputedPropertiesInData, which reports computed properties used inside thedatafunction of a Vue component. Vue runsdatabefore it sets up computed properties, so the value read there isundefined.<script> export default { data() { return { total: this.doubled }; }, computed: { doubled() { return 2; }, }, }; </script>Added the nursery rule
noVueDeprecatedDeleteSet, which reports calls to the$setand$deletefunctions,Vue.setandVue.delete, andsetanddelimported fromvue. Vue 3 removed these functions, so calling them throws an error.<script> export default { mounted() { this.$set(this.user, "name", "Alice"); }, }; </script>Added the nursery rule
noVueDeprecatedRouterLinkTagProp, which disallows thetagprop onRouterLink. Vue Router 4 ignores this prop, so the link still renders as an<a>element.<template> <RouterLink tag="li" to="/">Home</RouterLink> </template>
- Breaking
Added the new nursery rule
noVueDeprecatedScopeAttribute, which reports thescopeattribute on<template>elements in Vue files. Vue no longer supports this attribute, so usev-slotto receive slot props instead.<template> <ListComponent> <template scope="props">{{ props.title }}</template> </ListComponent> </template> Added the new nursery rule
noVueMultipleSlotArgs, which disallows passing more than one argument to a Vue slot from a render function. Slot content written in a template receives only the first argument.<script> export default { render() { return this.$slots.default(item, index); // reported }, }; </script>Added the nursery rule
noVueMutatingProps, which reports code that changes the props of a Vue component, in the script or in the template. Props belong to the parent component, so the child should emit an event or copy the value instead.<script setup> const props = defineProps({ items: Array }); props.items.push("new item"); </script>Added the nursery rule
noVueSideEffectsInComputed, which reports Vue computed properties that change state. Vue decides when to run a computed property, so changes made inside one happen at unpredictable times.<script setup> import { computed, ref } from "vue"; const items = ref([]); // `reverse()` changes `items.value` in place. const reversedItems = computed(() => items.value.reverse()); </script>Added the new nursery rule
noVueUnusedRefs, which reports template refs in Vue components that nothing reads through$refs,useTemplateRef(), or a variable of the same name in<script setup>. The rule needshtml.experimentalFullSupportEnabledto betrue.<template> <input ref="input" /> </template>
Added the new nursery rule
noYamlBooleanKeys, which disallows boolean values as keys in YAML. For example, the following key is a boolean instead of text, so it is reported:true: enabled
Added the nursery rule
useSvelteEventDispatcherTypes, which reportscreateEventDispatcher()calls that don't declare the types of their events in Svelte components written in TypeScript.The rule accepts a call that declares its events:
<script lang="ts"> import { createEventDispatcher } from "svelte"; const dispatch = createEventDispatcher<{ save: string }>(); </script>Added the nursery rule
useVueDefineOptions, which reports the default export of a plain<script>block in Vue components that also use<script setup>, and suggests setting those options withdefineOptions()instead.<script> export default { name: "MyComponent" }; // reported </script> <script setup> const props = defineProps(["title"]); </script>Added the nursery rule
useVueDefinePropsDestructuring, which requires destructuring the props returned bydefineProps()in Vue<script setup>blocks. It also reportswithDefaults(), because destructured props can set their default values directly.<script setup lang="ts"> const props = defineProps<{ foo?: string }>(); </script>Added the nursery rule
useVueTemplateRef, which requiresuseTemplateRef()instead ofref()orshallowRef()to access elements of the template in<script setup>.<template> <input ref="input" /> </template> <script setup> import { ref } from "vue"; const input = ref(); // reported </script>Added the nursery rule
useVueTypedProps, which reports Vue props declared without a type, in thepropsoption,defineProps(), ordefineModel(). Without a type, Vue accepts any value for the prop and can't warn when a component receives the wrong kind of value.<script setup> defineProps(["title"]); </script>
Added the nursery rule
useVueVModel, which reports a prop binding on a Vue component paired with anupdate:listener that only writes the new value back, and suggestsv-modelinstead.<template> <MyComponent :title="title" @update:title="title = $event" /> </template>
Added the nursery rule
useVueValidDefineEmits, which enforces valid usage of Vue'sdefineEmitsmacro in<script setup>.For example, the following code is now reported, because
defineEmitsdeclares its events with both a type and an argument:<script setup lang="ts"> const emit = defineEmits<(e: "notify") => void>(["submit"]); </script>
Added the nursery rule
useVueValidDefineProps, which reportsdefineProps()calls that Vue can't compile or that declare props incorrectly. For example, it reports a component that callsdefineProps()twice, or whosedefineProps()argument uses a variable declared in<script setup>:<script setup> const definition = { msg: String }; defineProps(definition); </script>Added the nursery rule
useVueValidVIs, which reportsv-isdirectives that have an argument or modifiers, have no value, or are used on a component instead of a native HTML element.For example, the following
v-isdirective has no value:<template> <tr v-is></tr> </template>
Added the nursery rule
useVueValidVMemo, which reports invalidv-memodirectives in Vue templates. Av-memodirective must have an array value, can't have an argument or modifiers, and doesn't work inside an element withv-for.For example, the following value is an object instead of an array:
<template> <div v-memo="{ id }"></div> </template>Added the nursery rule
useVueValidVModel, which reportsv-modeldirectives that Vue can't use: on unsupported elements or file inputs, with an argument or unknown modifier on a native element, without a value, or with a value that can't be assigned to.For example, the following
v-modeldirectives are invalid:<template> <div v-model="foo"></div> <input v-model="foo + bar" /> </template>
Added the new nursery rule
useVueValidVShow, which reportsv-showdirectives that have an argument, a modifier, or no value, or that are placed on a<template>element.<template v-show="isVisible"><div></div></template>
Added the nursery rule
useVueValidVSlot, which reports misplaced, duplicated, or malformedv-slotdirectives in Vue templates.For example, the rule reports two
<template>elements that fill the same slot:<MyComponent> <template #header>First title</template> <template #header>Second title</template> </MyComponent>
Added the new nursery rule
useWhileLoopCondition, which reports loops such aswhile (true)andfor (;;)that start with anifstatement containing only abreak, and moves that condition into thewhilestatement.while (true) { if (!hasMore()) { break; } // reported processNext(); }Updated
useSortedPropertiesto followstylelint-config-recess-order7.9.0, adding sorting support forscroll-behavior, anchor positioning, multi-column layout, and other properties known to Biome.Improved the performance of the linter. Biome now spends less time setting up the enabled rules for each file it analyzes.
Improved the performance of
biome lintby about 1% to 3% on large projects, most noticeably with Biome's default rules and with rules that track variables or unreachable code.Fixed #12466: the Biome daemon used more memory with every
biome check --use-serverrun. The daemon now reuses the data that it stores for each file and project, and it keeps syntax trees only for the files that it read most recently.Fixed biomejs/biome-vscode#923: when a file open in the editor changed on disk, the language server replaced the editor's text with the text on disk. Biome now keeps the editor's text of open files until they are closed, so diagnostics, code actions and formatting stay at the right positions.
Fixed #12651: an imported name that the other module exports as both a type and a value now resolves to the type in type annotations, so
noBaseToStringno longer reportsslugbelow as an object.// rule-slug.ts export type RuleSlug = string; export const RuleSlug = { create: (text: string): RuleSlug => text } as const; // main.ts import { RuleSlug } from "./rule-slug"; export const label = (slug: RuleSlug): string => `rule ${slug}`;Fixed biomejs/biome-vscode#1113: the language server now shows a warning when the configuration file can't be parsed. Previously, Biome stopped processing files without telling the user why.
Fixed #12645: the Markdown formatter no longer removes the blank line between a blockquote and the list that follows it, matching Prettier.
> A note. - one - two
Fixed #12663: the Markdown formatter no longer removes the blank line between a table and the list that follows it, matching Prettier.
| Table | | ----- | | Value | - Hello
Fixed #12541: Markdown list items whose markers are indented 4 or more spaces now nest at the correct level. Previously the formatter could move such an item under the item before it, or join it to that item's text.
1. Step - a - x - - y - - b + - y + - bFixed formatting of Markdown block quotes inside deeply indented list items. With
proseWrap: "always", consecutive quote lines now wrap together within the same quote, while setext headings and fenced code blocks keep their structure.10. item - > first line - > second line + > first line second line
Fixed #12542: the Markdown formatter is no longer idempotent when it formats tables.
- | a | b | - | -------- | ----- | - | x | `y` z | - | `p` z`q` | r | + | a | b | + | --------- | ----- | + | x | `y` z | + | `p` z `q` | r |
Fixed the
linux-x64-muslbinary not using jemalloc, which it already ships: it fell back to musl's allocator, andbiome checkon several threads could take minutes instead of seconds, for example in Alpine-based CI images.Fixed #12679: when
markdown.parser.frontmatterandmarkdown.formatter.formatEmbedsare enabled, the Markdown formatter keeps the frontmatter of a fenced Markdown code block as written. Previously, it formatted the frontmatter as a thematic break and a paragraph, which removed the indentation of its YAML.```markdown --- verified: by: human --- # Policy ```
Fixed #12643 and #12669: Biome now migrates the Prettier option
bracketSpacingtoformatter.bracketSpacing, both at the top level and insideoverrides. JSON and GraphQL files are now formatted with the same bracket spacing as JavaScript files.Fixed
useSortedPropertiesto withhold sorting fixes that would change the effective values of overlapping declarations, physical/logical border or corner properties, or declarations followed byall.
UpdatednoShorthandPropertyOverridesto recognize logical border, corner shape,position-try,text-box, andtransition-behavioroverrides.Improved the performance of
biome lint,biome check, andbiome cion files where rules report diagnostics with code fixes, by up to 12% with the default rules.Fixed Biome processing
pnpm-lock.yamlfiles. These generated lockfiles are now protected from processing.Fixed an issue where the CLI, when it ran with
--use-serveralongside an editor connected to the same daemon, checked the unsaved text of the files open in the editor instead of the files on disk, and could make the editor's text get lost. The CLI now checks the files on disk, and every editor and CLI run connected to the daemon keeps its own text of the files it opens.The rule
noVueVIfWithVFornow also reportsv-else-ifandv-elseon the same element asv-for.<div v-if="loading">Loading...</div> <TodoItem v-else v-for="todo in todos" :todo="todo" />
Fixed parsing of default values in Vue
v-forbindings. Biome now parses the default value as JavaScript, so it is formatted and linted like other template expressions instead of being reported as a parse error.<div v-for="{ value = gt('v-for default') } in rows" />Fixed non-JSON files inside the global settings directories of Zed, VS Code, and Cursor being parsed as JSON.
Fixed an issue where the language server kept using the previous parser options for open files after the configuration changed. Open files are now parsed again with the new options, for example
json.parser.allowComments.Improved the performance of Biome when it processes many files by up to 7%.
Added the nursery rule
noVueDeprecatedListeners. It reports references to$listeners, which Vue 3 removed, in Vue templates and component objects. For example, Biome now reports<div v-on="$listeners" />andthis.$listenersinside a Vue component.
What's Changed
Mark pnpm-lock.yaml as protected file
lint: Add noVueDeprecatedListeners
lint: Add noVueDeprecatedRouterLinkTagProp
lint: Add noVueDeprecatedScopeAttribute
lint: Add noVueDeprecatedDeleteSet
Dependency tracking · free for 3 projects
Know when your own dependencies move
@biomejs/biome published 51 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 9 Nov 2026. Releases and advisories last read 10 Nov 2026.