All versions since 2.6.7
2.6.7
Patch Changes
-
#12906
b3375d2Thanks @dyc3! - Added the nursery rulenoAsyncPromiseFinally, which reports async functions passed to a promise’s.finally()method. If such a function fails, its error replaces the original result or error of the promise.promise.finally(async () => {await cleanup();}); -
#12894
e24da6fThanks @dyc3! - Added the nursery rulenoDuplicateTypeConstituents, which reports types listed more than once in a union or intersection type, andundefinedin the type of an optional parameter.type T = string | number | string;function f(a?: string | undefined) {} -
#12899
6c15027Thanks @dyc3! - Added the nursery rulenoExcessiveSelectorComplexity, which limits how many IDs, type selectors, attribute selectors, pseudo-classes, universal selectors, compound selectors, and combinators a CSS selector can contain. It can also disallow chosen combinators, pseudo-classes, pseudo-elements, attributes, and attribute operators. The rule does nothing until an option is set.For example, with
"maxIds": 1, the following selector is reported:#main #sidebar {} -
#12897
0b8f429Thanks @dyc3! - Added the new nursery rulenoInvalidFetchOptions, which reports abodyin the options offetch()andnew Request()when the method isGETorHEAD. These calls throw aTypeErrorat runtime. When nomethodis given, the request usesGET.await fetch("/", { method: "GET", body: "foo=bar" }); -
#12926
9b6b9f4Thanks @dyc3! - Added the nursery rulenoNewArray, which reportsnew Array()calls with a single argument. Such a call creates an empty array of the given length when the argument is a number, and an array that holds the argument otherwise.const array = new Array(length); -
#12895
739440fThanks @dyc3! - Added the new nursery rulenoRedundantTypeConstituents, which reports members of union and intersection types that have no effect, such as a literal type next to its primitive type, orneverin a union.type Status = "active" | string; -
#12810
71ab61bThanks @dyc3! - Added the nursery rulenoSvelteAsyncStore, which disallows passing async functions to thewritable(),readable(), andderived()stores fromsvelte/store.import { writable } from "svelte/store";const user = writable(null, async (set) => {set(await fetchUser());}); -
#12917
37d9f41Thanks @dyc3! - Added the new nursery rulenoUnresolvedDefaultImport, which reports default imports from modules that have no default export. The rule is part of theprojectdomain.// foo.js only contains `export function foo() {}`import foo from "./foo.js"; -
#12892
f16842eThanks @dyc3! - Added the nursery rulenoUselessFallbackInSpread, which reports empty object fallbacks when spreading a value into an object. Spreadingnull,undefined, or another falsy value into an object adds no properties, so the fallback has no effect.const object = { ...(options || {}) }; -
#12785
c198be2Thanks @dyc3! - Added the new nursery rulenoUselessParameterPropertyAssignment, which reports constructor assignments such asthis.name = namewhennameis a parameter property. TypeScript already sets the property to the parameter’s value, so the assignment does nothing.class User {constructor(public name: string) {this.name = name;}} -
#12900
a4d1b0fThanks @dyc3! - Added the nursery rulenoUselessSpread, which reports spread syntax that has no effect. For example,[first, ...[second]]can be written as[first, second], andnew Set([...items])can be written asnew Set(items). -
#12902
d7d755bThanks @dyc3! - Added the nursery rulenoVueExposeAfterAwait, which reportsexpose()anddefineExpose()calls that come after anawaitin a Vue component’s setup code. These calls run too late, so a parent component might not receive the exposed properties.<script setup>await fetchUser();defineExpose({ reload });</script> -
#12596
d33e56eThanks @dyc3! - Added the nursery ruleuseAtomicUpdates, which reports assignments in async functions and generators that can be based on an outdated value because the function paused at anawaitoryieldafter reading it.let total = 0;async function addToTotal(getAmount) {total += await getAmount(); // reported} -
#12901
48e3572Thanks @dyc3! - Added the new nursery ruleuseConsistentBooleanName. It requires variables, parameters, and functions that hold or return a boolean to start with a prefix such asisorhas, and reports names with those prefixes that don’t hold or return a boolean.const completed = progress === 100;const hasName = "Sindre"; -
#12905
5b00387Thanks @dyc3! - Added the nursery ruleuseConsistentFontWeightNotation, which enforces writing font weights either as numbers or as the keywordsnormalandboldwhere possible. It checks thefont-weightandfontproperties, and its safe fix converts betweennormal/boldand400/700.a { font-weight: bold; } -
#12922
8d33c85Thanks @dyc3! - Added the nursery ruleuseConsistentTupleLabels, which reports tuple type elements without a label when other elements of the same tuple have one.type Point = [x: number, number]; -
#12925
7252cbdThanks @dyc3! - Added the new nursery ruleuseGlobalRegexInMatchAll, which reports calls tomatchAll()with a regular expression that doesn’t have thegflag. These calls throw aTypeErrorat runtime.text.matchAll(/pattern/); -
#12891
e781bc3Thanks @dyc3! - Added the nursery ruleuseGlobalRegexInReplaceAll, which reports regular expressions without thegflag passed toreplaceAll(). These calls throw aTypeErrorinstead of replacing text.withSpaces.replaceAll(/\s+/, ","); -
#12896
a968e1aThanks @dyc3! - Added the new nursery ruleuseValidCharacterComparison, which reports comparisons between a single character and a string that has more than one character. Such comparisons are alwaysfalse, or alwaystruewith!==and!=.text.charAt(0) === "ab"; -
#13085
7a795d0Thanks @ematipico! - Fixed withastro/compiler-rs#221 so Astro template expressions containing comment-only JSX expression children, such as<span>{<!-- x -->}</span>, parse without diagnostics. -
#12621
79ce388Thanks @latin-1! - Fixed #12413 and #12414:useSortedPropertiesnow sorts consecutive groups of properties independently, preserving the positions of nested rules, at-rules, and SCSS variable declarations. -
#13065
bd9faaeThanks @ematipico! - Fixed #5848: runninguseSortedKeysoruseSortedSelectionSetas an editor source action no longer corrupts nested objects or selection sets. -
#13056
98f4d53Thanks @ematipico! - Fixed #10607:noUndeclaredDependenciesno longer reports imports resolved through TypeScript’scompilerOptions.pathsmappings. -
#13033
7638393Thanks @GBra-4-669! - Fixed #12980: the CSS parser no longer panics on acomposesdeclaration whose value contains a non-identifier token, such ascomposes: 1px;. It reports a diagnostic instead. -
#12917
37d9f41Thanks @dyc3! - FixednoUnresolvedImports: it now reports default imports from modules that only forward exports withexport * from "...".export *never re-exports a default export, soimport foo from "./barrel.js"fails when./barrel.jscontains onlyexport * from "./foo.js". -
#12596
d33e56eThanks @dyc3! - FixednoUnreachableSuperignoring the default values of constructor parameters. Usingthisin a default value is now reported, because it runs beforesuper(), and callingsuper()in a default value is now recognized.class Child extends Parent {constructor(options = this.defaults()) { // reportedsuper(options);}} -
#12596
d33e56eThanks @dyc3! - FixednoUselessAssignmentignoring variables that are used in the iterated value of afor...oforfor...inloop, in the default values of a destructuring declaration or of parameters, or in the body of an arrow function written as a single expression. These variables are now checked too.function process(first, second) {let list = first; // reported: this value is never readlist = second;for (const item of list) {handle(item);}} -
#12805
2468384Thanks @vibbix! - Fixed #12332:noUnknownUnitno longer reports hex colors that start with a digit in SCSS custom properties or in unquoted legacy IEfiltervalues. The rule now accepts--accent: #4566a8;instead of reporting the unknown unita8. -
#12549
7fdb28fThanks @pkallos! - Fixed #10464:useNullishCoalescingno longer reports a ternary orifstatement that checks onlynullor onlyundefinedwhen the type can also be the other, because??would change its behavior. -
#12952
d1896a0Thanks @arendjr! - Addedgrit()queries to JavaScript plugins. A rule can now use a GritQL pattern to select the nodes passed torun()instead of listing syntax kinds withast().For example:
export const noConsole = defineRule({query: grit("`console.log($args)`"),run(element) {if (element.kind !== "JS_CALL_EXPRESSION") return;registerDiagnostic(element, "warning", "Unexpected console.log.");},});Usage of Grit patterns can be particularly useful when it would take several checks to verify the shape of a snippet that involves multiple AST nodes.
Grit sequence patterns call
run()for each matched node. Matching on leaf tokens is also supported for patterns, while patterns containing rewrites are rejected. Plugins using GritQL patterns should report diagnostics fromrun()as usual.Plugins using Grit queries can still request the semantic model as well:
export const rule = defineRule({query: grit("function $fn($args) { $body }", { semantic: true }),run(node, { model }) {// You can use `model` here similar to a query specified using `ast(..., { semantic: true })`.},}); -
#13022
81d0187Thanks @arendjr! - Fixed an issue where GritQL patterns wouldn’t match snippets if they contain a trailing list separator.For example, the pattern
`a, b`wouldn’t match the arguments infunction(a, b,), whereas now they do. -
#12999
ace98cfThanks @deepsingh132! - Fixed #12953: the Markdown formatter no longer removes the blank line between a blockquote that ends a list item and the block that follows it, matching Prettier. Removing that line could also move a following paragraph into the blockquote. The same applies to a list item that ends with a hard line break.- a> b#### Heading -
#13067
45c8c4dThanks @ematipico! - Added the nursery rulenoDisabledAttribute, which warns when buttons and other form controls use the nativedisabledattribute. A disabled control can’t be reached with the Tab key, so the rule suggestsaria-disabledorreadonlyinstead.<button disabled>Save</button><input type="email" disabled /> -
#12923
0668c8fThanks @dyc3! - Added the new nursery rulenoScssNullComparison. It reports comparisons tonullin Sass@ifand@else ifconditions, becausenullalready counts as false in a condition.a {@if $value == null {}} -
#12955
e1ef913Thanks @ematipico! - Fixed an issue where Biome could silently skip configured plugins. Biome now reports an error when those plugins are unavailable during analysis. -
#12997
419aa5dThanks @Riccardo-bit-cpu! - Fixed #12475:noSwitchDeclarationsno longer reportsvardeclarations insideswitchclauses, matching ESLint’sno-case-declarations. -
#12867
6a25d72Thanks @dyc3! - Added the nursery rulenoUselessQualifier, which reports namespace and enum names that are repeated before a member inside that same namespace or enum. Biome provides a fix that removes the repeated name.namespace Shapes {export type Point = { x: number; y: number };const origin: Shapes.Point = { x: 0, y: 0 };} -
#12050
60f4695Thanks @dor-sr! - Fixed #11933:useUnicodeRegexno longer offers to add theuflag to patterns that become invalid or change meaning in Unicode mode, such as/{/,/\-/or/[\d-z]/. The rule still reports them. -
#13035
478e056Thanks @dyc3! - Fixed #13026: the Markdown formatter no longer indents the rows of a table inside a blockquote when the table follows a paragraph of two or more lines. Previously, every run of the formatter indented the rows further until they were joined onto the header line.> First line of a paragraph,> second line of it.>> | A | B |> | --- | --- |> | x | y |> | --- | --- |> | x | y | -
#13066
f6cf28eThanks @arendjr! - Removed thesemantic()query function from the JavaScript plugin API. Pass{ semantic: true }toast()instead to provide the semantic model to a rule.export const rule = defineRule({query: semantic("JS_REFERENCE_IDENTIFIER"),run(node, { model }) {// Use `model` here.},});Becomes:
export const rule = defineRule({query: ast("JS_REFERENCE_IDENTIFIER", { semantic: true }),run(node, { model }) {// Use `model` here.},});This behaviour matches the
grit()query function, which also accepts the{ semantic: true }option. -
#12951
014b976Thanks @ematipico! - Fixed #10782:noUndeclaredClassesno longer appears to hang on projects with long component import chains. -
#13073
827e610Thanks @vibbix! - Fixed #13072: a comment before a SCSS map entry whose value is a parenthesized group no longer indents that group one level too deep. This matches Prettier 3.10 behavior now.$map: (/* comment */key: (a: 1,b: 2,),a: 1,b: 2,),); -
#12928
ae0e186Thanks @dyc3! - ImprovednoUselessStringConcat. The rule now reports literals joined after another value, such asfoo + "a" + "b", and fixes template literals with placeholders, so`Hello, ${name}` + "!"becomes`Hello, ${name}!`.The rule no longer reports strings that would join into text that looks like a placeholder, such as
"$" + "{name}", or into a directive such as"use strict". It also no longer reportsobj.foo * "a" + "b", which its fix used to change toobj.foo * "ab".The fix no longer changes the value of the string in two cases. It used to change
1 + 2 + "b" + "c"to"12bc"instead of1 + 2 + "bc". It used to change"\1" + "2"to"\12", which is a different escape sequence.The fix no longer joins literals that are on different lines when the concatenation ends with two literals on the same line. It also no longer puts a line break from a template literal into a string literal, which made the code invalid.
-
#13048
24734a8Thanks @ematipico! - Fixed #13028: Biome now keeps a paragraph in its outer block quote when a quote-only blank line closes a nested block quote.> > b>> > c> c -
#12967
bd0988eThanks @siketyan! - Fixed #12827:noDuplicateProperties,noDuplicateCustomProperties, andnoMissingVarFunctionnow check declarations at the top level of embedded CSS templates, such asstyled.div`...`. -
#13048
24734a8Thanks @ematipico! - Fixed #13029: the Markdown formatter now normalizes spaces inside inline and reference link text without removing whitespace-only text.something [ text ]( destination)something [ ]( destination)something [ text ](destination)something [ ](destination) -
#13021
05a1409Thanks @dyc3! - Fixed #12993: Svelte{@const}tags with TypeScript type annotations, such as{@const doubled: number = item * 2}, now parse and format in components with<script lang="ts">. -
#12968
ec0142bThanks @siketyan! - Fixed #12826: Biome now detects CSS in styled-components templates that use.attrs(), such asstyled.button.attrs({ type: "button" })`...`andstyled(Component).attrs(() => ({}))`...`, so they are formatted and linted likestyled.button`...`. -
#13048
24734a8Thanks @ematipico! - Fixed #13027: the Markdown formatter now preserves spaces around text after a code span that crosses block quote lines.> `a> b`c`d`> b` c `d` -
#13055
78c744aThanks @ematipico! - Fixed #13053: Biome now reports missing CLI paths as file-system errors without theINTERNALtag or advice that the path was ignored by configuration. File-system diagnostics now use specificfs/*categories, with underlying I/O errors categorized asfs/io. -
#12927
c6feec1Thanks @dyc3! - Added the nursery ruleuseCatchErrorName, which requires a specific name for caught errors intry...catchstatements and in the error handlers ofpromise.catch()andpromise.then(). The name defaults toerrorand can be changed with thenameoption.try {} catch (err) {} // `err` should be named `error` -
#12788
7f971edThanks @dyc3! - ExtendeduseWhileto reportfor (;;)loops and to fix them towhile (true). -
#12967
bd0988eThanks @siketyan! - FixednoMissingVarFunctionso it also checks declarations inside at-rules such as@pageand@font-face. For example,@page { margin: --page-margin; }is now reported when--page-marginis declared in:root. -
#13057
d9267a5Thanks @ematipico! - Fixed #10896 so Svelte<script generics>attributes containing object type constraints parse and format as TypeScript type parameters. -
#13048
24734a8Thanks @ematipico! - Fixed #13038: Biome now aligns wrapped task-list paragraphs with the text following the checkbox.- [ ] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc variusmalesuada eros, faucibus dapibus odio rhoncus in.malesuada eros, faucibus dapibus odio rhoncus in.
2.6.8
Patch Changes
-
#13080
a68137dThanks @dyc3! - Added the nursery rulenoBufferConstructor, which disallows the deprecated Node.jsBuffer()andnew Buffer()constructors. UseBuffer.from(),Buffer.alloc(), orBuffer.allocUnsafe()instead.new Buffer(5); -
#12966
82651f5Thanks @dyc3! - Added the nursery rulenoConfusingArraySplice, which reportssplice()andtoSpliced()calls that replace a single element or insert at index-1.array.splice(index, 1, element); // use `array[index] = element` instead -
#12924
0a9d204Thanks @dyc3! - Added the nursery rulenoDynamicRequire, which disallowsrequire()calls whose module name is built at runtime. When thecheckDynamicImportsoption is enabled, the rule also checksimport()calls.require("./locales/" + language); -
#12907
6f2635aThanks @dyc3! - Added the nursery rulenoLateCurrentTargetAccess, which reports reads ofevent.currentTargetthat run after the browser has finished handling the event, whencurrentTargetisnull.element.addEventListener("click", async (event) => {await save();event.currentTarget.disabled = false;}); -
#12904
04f30c4Thanks @dyc3! - Added the nursery rulenoMisusedSpread, which uses type information to report spreads that produce unexpected results: strings spread into arrays or arguments, and promises, functions, maps, arrays, iterables, class instances, and classes spread into objects or JSX attributes.declare function getUser(): Promise<{ name: string }>;const user = { ...getUser() }; -
#12893
5d7ca32Thanks @dyc3! - Added the nursery rulenoTripleSlashReference, which reports/// <reference path="..." />comments and/// <reference types="..." />comments for packages that the file also imports. Thelib,path, andtypesoptions control which kinds of references are allowed./// <reference path="./globals.d.ts" /> -
#12561
746c421Thanks @dyc3! - Added the nursery rulenoVueAsyncComputed, which reports asynchronous code in Vue computed properties, such asasyncfunctions,await, promises,setTimeout(), andnextTick().<script>export default {computed: {async user() {return fetchUser(this.userId);},},};</script> -
#12964
149d729Thanks @dyc3! - Added the nursery rulenoVueDefineModelDefault, which disallows thedefaultoption in Vue’sdefineModel(). When a parent component passesundefinedwithv-model, the child component uses the default value while the parent keepsundefined, so the two components show different values.<script setup>const model = defineModel({ type: String, default: "" });</script> -
#13060
67bc9d5Thanks @dyc3! - Added the nursery rulenoVueDeprecatedFilter, which reports the filter syntax that Vue 3 removed.For example, the following template uses the
currencyfilter:<template><p>{{ price | currency }}</p></template> -
#12545
0bbe4f1Thanks @dyc3! - Added the new nursery rulenoVueDeprecatedVIs, which reports the deprecated Vuev-isdirective. Use theisattribute with avue:prefix instead.<template><div v-is="'MyComponent'"></div></template> -
#12580
3fdc987Thanks @dyc3! - Added the nursery rulenoVueExportInScriptSetup, which disallowsexportin Vue<script setup>blocks. Vue fails to compile a component when its<script setup>block exports a value. TypeScript type exports are allowed.<script setup>export const message = "Hello";</script> -
#13063
d4e90c8Thanks @dyc3! - Added the nursery rulenoYamlEmptyMapKeys, which reports YAML map entries whose key is missing, or has only a tag or an anchor. The rule is recommended.: value -
#13061
97aa183Thanks @dyc3! - Added the nursery rulenoYamlEmptyMapValues, which reports keys in YAML maps that have no value.name: -
#13062
6aad75fThanks @dyc3! - Added the new nursery rulenoYamlEmptySequenceEntries, which reports empty items in YAML lists.fruits:- apple-- banana -
#13082
c1c8c85Thanks @dyc3! - Added the nursery ruleuseCalledWith, which reportstoHaveBeenCalled(),toBeCalled(), andtoHaveBeenCalledOnce()assertions, because they don’t check the arguments that the function was called with. The rule belongs to thetestdomain.expect(sendEmail).toHaveBeenCalled(); -
#13075
acfeaf9Thanks @dyc3! - Added the nursery ruleuseExpectToHaveBeenCalled, which reports tests that compare the number of calls of a mock function to zero, and suggests usingtoHaveBeenCalled()instead.expect(sendEmail).toHaveBeenCalledTimes(0); -
#13076
cf5b1a6Thanks @dyc3! - Added the nursery ruleuseExpectToHaveBeenCalledTimes, which reports tests that check the length ofmock.callswithtoHaveLength(), and suggests usingtoHaveBeenCalledTimes()instead.expect(onSave.mock.calls).toHaveLength(1); -
#13020
5d28641Thanks @dyc3! - Added the new nursery ruleusePackageJsonValidLicense, which reports alicensefield inpackage.jsonthat isn’t a valid license. The rule accepts SPDX license identifiers and expressions,UNLICENSED, and references to a license file such asSEE LICENSE IN LICENSE.md.For example, the rule reports the following
package.jsonfile becauseGPL3isn’t an SPDX license identifier:{"name": "my-package","license": "GPL3"} -
#13079
058d7a1Thanks @dyc3! - Added the nursery ruleuseSpyOn, which reports properties that are overwritten withjest.fn()orvi.fn(). Overwriting a property loses its original value, whilejest.spyOn()andvi.spyOn()keep it so it can be restored after the test.Date.now = jest.fn(() => 10); -
#13081
be58f67Thanks @dyc3! - Added the nursery ruleuseTopLevelRequire, which reportsrequire()calls that aren’t at the top level of the module, such as calls inside functions, blocks, ortrystatements.function readFile(filename, callback) {const fs = require("fs");fs.readFile(filename, callback);} -
#13054
4d81f0dThanks @dyc3! - Added the nursery ruleuseValidNamespaceImports, which reports names read from a namespace import that the imported module doesn’t export. It also reports assignments to members of a namespace import, and namespace imports of modules that have no exports.import * as utils from "./utils.js";utils.subtract(2, 1); // `./utils.js` doesn't export `subtract` -
#13058
ae251e4Thanks @dyc3! - Added the new nursery ruleuseVueConsistentVOnHandlerStyle, which enforces one style of event handler in Vuev-ondirectives. By default, it prefers the name of a method, and an inline function where a method name can’t be used.<template><button @click="save()">Save</button></template> -
#12965
c33c03dThanks @dyc3! - Added the nursery ruleuseVueRegisteredComponentNameCasing, which requires the names of components registered in thecomponentsoption of a Vue component to use one casing style. By default, names must be in PascalCase. Thecasingoption switches the rule to camelCase or kebab-case.<script>export default {components: {"todo-item": TodoItem,},};</script> -
#12145
596a2b1Thanks @ematipico! - Added type narrowing for unwritten locallet/constvariables and parameters aftertypeof, equality, nullish, and truthiness checks. Type-aware rules now use these refinements in branches, short-circuit expressions, and after early returns, includingnoUnnecessaryConditionsandnoFloatingPromises. Types such as{}no longer imply that a value is always truthy. -
#12935
e506ff1Thanks @dyc3! - Improved the performance of the rulesnoRedeclareandnoUnsafeDeclarationMerging.biome lintwith Biome’s default rules is now about 3% to 5% faster on large projects, and up to 11% faster on some TypeScript projects. -
#13181
e1556aeThanks @dyc3! - Fixed the HTML formatter printing a comment twice when it ends the line of an element’s opening tag. For example,<div><!-- comment -->followed by<i>x</i></div>on the next line is now formatted as:<div><!-- comment --><div><!-- comment --><i>x</i></div> -
#13130
1b350edThanks @dyc3! - Fixed #13107: the unsafe fix ofnoDistractingElementsnow removes the whole element, including its closing tag and children, instead of only the opening tag. The fix is no longer offered when removing the element would produce invalid code, such asconst Ticker = () => <marquee>News</marquee>;. -
#13054
4d81f0dThanks @dyc3! - FixednoUnresolvedImportsreporting names that a module re-exports from a CommonJS module or from a file that isn’t JavaScript, such asexport { foo } from "./legacy.cjs". The rule now also reports default imports from a module that only re-exports another module withexport * from, becauseexport * fromdoesn’t forward the default export. -
#12602
d5da394Thanks @dyc3! - Fixed #12600:biome lint --suppressnow adds suppression comments for diagnostics emitted by plugins, such as// biome-ignore lint/plugin/noFoo: ignored using `--suppress`. -
#13097
3be9e3dThanks @ashokram-si! - Fixed #13064: ThenoUnknownTypeSelectorrule now correctly accepts the valid<selectedcontent>HTML element used in customizable select controls. -
#13181
e1556aeThanks @dyc3! - Fixed #13167: The HTML formatter no longer deletes comments that follow a Svelte block delimiter on the same line, such as{#if},{:else}, or{#each}. For example,{#if a}<!-- comment --><i>x</i>{/if}is now formatted as:{#if a}<i>x</i><!-- comment --><i>x</i>{/if} -
#12845
e3ab04dThanks @dyc3! - Fixed the location of Tailwind CSS diagnostics reported on unquoted object keys. Inclsx({ shadow: active }), diagnostics now highlightshadowinstead of starting one character later athadow:. -
#13098
d3be626Thanks @ashokram-si! - Fixed #13084: TheuseThisInClassMethodsrule now correctly recognizesthiswhen used inside parameter default values for methods, setters, and class fields. -
#13131
a788cacThanks @dyc3! - Fixed #13129: the fix ofuseArrowFunctionno longer produces invalid code when the function is in the initializer of aforstatement and returns aninexpression. The arrow function body is now wrapped in parentheses.// Beforefor (let has = function (k) { return k in cache; }; ;) {}// After the fixfor (let has = (k) => (k in cache); ;) {} -
#12840
8908627Thanks @dyc3! - Fixed #12796:useMathMinMaxno longer reports comparisons with abigintwritten as an expression, such as-1nor2n ** 62n - 1n, or with aconstvariable initialized with one. Its unsafe fix turned these comparisons intoMath.min()orMath.max()calls, which throw aTypeErrorwhen given abigint.const MAX = 2n ** 62n - 1n;const clamp = (x) => (x > MAX ? MAX : x); -
#13152
61924f6Thanks @dyc3! - FixednoVueWatchAfterAwait,noVueLifecycleAfterAwaitandnoVueRestrictedCallAfterAwait, which now also check thesetup()function passed as the first argument ofdefineComponent(). The following code is now reported:import { defineComponent, onMounted } from "vue";defineComponent(async (props) => {await load();onMounted(() => {});}, { props: ["id"] });When
defineComponent()receives both a function and an options object, these rules now ignore thesetupoption, because Vue runs the function instead. -
#13152
61924f6Thanks @dyc3! -noVueDuplicateKeysnow checks the properties returned by asetup()method of an options object, soreturn { foo }conflicts with a prop, data property, method or computed property namedfoo. -
#13152
61924f6Thanks @dyc3! - The Vue emit rules now read events declared with a function type, as indefineEmits<(e: "change", value: string) => void>(), and event names written as template literals without substitutions, as inemit(`change`).noVueUndeclaredEmits,noVueUnusedEmitDeclarations,useVueSingleEventPayloadanduseVueEmitValidatorpreviously skipped events declared in these forms.noVueShadowNativeEventsnow checksthis.$emit()only wherethisis the component, and no longer reports$emit()called through a variable that holdsthis, as inconst vm = this; vm.$emit("click"). -
#12947
a54965dThanks @machadinhos! - Added the nursery rulenoDrizzleDbObjectInsideTransaction, which reports a Drizzle ORM instance used inside its own transaction callback instead of the transaction object.await db.transaction(async (tx) => {await db.insert(users).values({ name: "John" });}); -
#13123
e7c8297Thanks @ematipico! - Fixed #12176: type-aware rules now select the matching overload of a method declared several times in an interface or object type. For example,useAwaitThenableno longer reportsawait app.listen({ port: 0 })on a Fastify server, and still reportsawait app.listen({ port: 0 }, callback). -
#12059
87784c7Thanks @dyc3! - FixednoUnsafePlusOperandstreating the negation of abigintvalue as anumber. Code such as-value + 1n, wherevalueis declared asbigint, is no longer reported for mixingnumberandbigint. -
#13151
be372b5Thanks @dyc3! - Fixed Vue lint rules such asuseVueVModelanduseVueVOnExacttreating MathML elements like<math>and<mi>as components. Biome now recognizes the MathML Core elements as native elements, and in Vue, Svelte, and Astro files it treats known hyphenated elements such as<annotation-xml>and the SVG<font-face>as native elements instead of components. -
#12059
87784c7Thanks @dyc3! - Type inference now evaluates conditional types such asT extends U ? X : Y, includinginferand distribution over unions, instead of treating them as a union of both branches. This also applies to built-in types such asExclude,Extract,ReturnType,Parameters, andAwaited, which improves the accuracy of type-aware rules such asnoFloatingPromises.type Unwrap<T> = T extends Promise<infer U> ? U : T;// Previously inferred as `unknown | Promise<number>`, now as `number`.type Value = Unwrap<Promise<number>>; -
#12602
d5da394Thanks @dyc3! - Biome now reports an error when a GritQL plugin file name contains invalid characters that could conflict with Biome suppressions. -
#12838
81d8d28Thanks @dyc3! - Added the nursery rulenoTailwindRestrictedClassesfor JavaScript and HTML. It reports the Tailwind CSS classes and variants listed in its options with a custom message, and can replace them with a configured class or variant.{"linter": {"rules": {"nursery": {"noTailwindRestrictedClasses": {"level": "error","options": {"classes": {"bg-green-500": { "message": "Use the success color.", "use": "bg-success" },"float-*": "Use flexbox or grid for layout."}}}}}}}<div className="hover:bg-green-500 float-left" />; // both classes are reported -
#12932
68e6887Thanks @dyc3! - Improved the performance of linting files that have no suppression comments by up to 61%. -
#13136
dcb1eabThanks @dyc3! - Improved the performance of linting JavaScript and HTML files when Tailwind rules are enabled. -
#13094
ae66383Thanks @dyc3! - Fixed #12994: the HTML formatter no longer moves a word onto its own line when it follows an inline element or{expression}that starts a line. Formatting such text is now stable after one pass.<span>Showing the first {shown} of{total}references{total} references</span> -
#13162
854ff15Thanks @Punisheroot! - Fixed #13125:noUselessThisAliasno longer reports aliases used in instance and static class field initializers, where replacing the alias withthischanges which object is accessed. -
#12059
87784c7Thanks @dyc3! - Fixed type inference for the intersection of a primitive type and one of its literal types, such asstring & "a", which Biome inferred asneverinstead of"a". Type-aware rules such asuseExhaustiveSwitchCasesandnoFloatingPromisesnow see the literal, so the following switch is reported for missing the"a"case.type Kind = ("a" & string) | "b";function handle(kind: Kind) {switch (kind) {case "b":break;}} -
#12551
ca039a1Thanks @pkallos! - Fixed #9842:useNullishCoalescingno longer skips||and||=inside a call to a locally declaredBooleanwhenignoreBooleanCoercionis enabled.
2.6.9
Patch Changes
-
#13192
d9e86abThanks @dyc3! - Added the nursery rulenoArrayDelete. It reports thedeleteoperator used on array elements, which leaves an empty slot in the array instead of removing the element. The rule needs type information, and offers an unsafe fix that replaces thedeletewith asplice()call.declare const array: number[];delete array[0]; -
#13209
4408dd4Thanks @dyc3! - Added the nursery rulenoExpectToHaveBeenCalledOnce, which reportstoHaveBeenCalledOnce()andtoBeCalledOnce()assertions and suggeststoHaveBeenCalledTimes(1)andtoBeCalledTimes(1)instead. The rule belongs to thetestdomain.expect(sendEmail).toHaveBeenCalledOnce(); -
#13217
c0dc090Thanks @dyc3! - Added the new nursery rulenoImmediateMutation, which reports arrays, objects,Sets, andMaps that are changed in the statement right after they are created, and variables that are assigned right after they are declared.const array = [1, 2];array.push(3); // reported: write `[1, 2, 3]` insteadlet foo;foo = 1; // reported: write `let foo = 1` instead -
#13120
54eb224Thanks @dyc3! - Added the nursery rulenoJasmineGlobals, which reports Jasmine globals in Jest tests, such asspyOn(),fail(),pending(), and thejasmineobject. Jest’s default test runner doesn’t provide them.jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000; -
#13122
6e2b42eThanks @dyc3! - Added the nursery rulenoReturnInTest, which reportsreturnstatements directly inside the body of a test function. The rule belongs to thetestdomain.test("adds two numbers", () => {return expect(add(1, 2)).toBe(3);}); -
#13161
37692e2Thanks @dyc3! - Added the nursery rulenoTailwindConflictingClasses, which reports Tailwind CSS classes that set the same CSS properties on an element. Only one of the conflicting classes takes effect, so the other one does nothing.<div className="flex grid" />; -
#13119
0cc8548Thanks @dyc3! - Added the nursery rulenoTestGlobals, which reports Jest and Vitest APIs that are used as global variables instead of being imported.describe("sum", () => {}); -
#13121
5065890Thanks @dyc3! - Added the nursery rulenoTestHooks, which reports setup and teardown hooks in tests, such asbeforeEachandafterAll.beforeEach(() => { // reportedcart = createCart();}); -
#13207
328be47Thanks @dyc3! - Added the nursery rulenoUnsafeSqliteInterpolation, which reports SQL strings that insert values with${}or use a tagged template when passed to theexec()andprepare()methods of anode:sqlitedatabase.import { DatabaseSync } from "node:sqlite";const database = new DatabaseSync(":memory:");database.exec(`SELECT * FROM users WHERE id = ${id}`); -
#12544
0d70b09Thanks @dyc3! - Added the new nursery rulenoUselessBind, which disallows.bind()calls on functions that don’t usethis, and on arrow functions.const handler = function () {console.log("clicked");}.bind(this); // reported -
#13216
a1c2950Thanks @dyc3! - Added the nursery rulenoUselessDefaultAssignment, which uses type information to report default values that can never be used, because the value they replace can’t beundefined.function greet({ name = "friend" }: { name: string }) {} // reported -
#13101
981cd33Thanks @dyc3! - Added the new nursery rulenoUselessNestedTernary, which reports nested ternary expressions that repeat a result of the expression around them. The conditions of such expressions can be combined with&&or||.const result = a ? (b ? c : d) : d; -
#13100
8ece6a5Thanks @dyc3! - Added the nursery rulenoUselessSetConstruction, which reports anew Set()that only copies a value used with aSetmethod such asunion()orisSubsetOf(). These methods accept aSetor aMapdirectly, don’t change theSetthey are called on, and return a newSetwhen they combine values.const selected = new Set([1, 2]);const other = new Set([2, 3]);selected.union(new Set(other));new Set(selected).union(other);new Set(selected.union(other)); -
#13164
dc11deaThanks @dyc3! - Added the nursery rulenoVueDuplicateVElseIf, which reportsv-else-ifconditions in Vue templates that repeat, or are covered by, earlier conditions of the samev-if/v-else-ifchain.For example, the second element below can never be rendered:
<template><div v-if="a || b" /><div v-else-if="a" /></template> -
#13194
9bd7f56Thanks @dyc3! - Added the new nursery rulenoVueNegationElse, which reports a negated condition inv-iforv-else-ifwhen av-elsebranch follows it. Its fix removes the negation and swaps the two branches.<template><div v-if="!isLoading">Content</div> <!-- reported --><div v-else>Loading...</div></template> -
#13271
31fad4aThanks @dyc3! - Added the nursery ruleuseBiomeKindSets, which reports Biome JS plugins that check thekindof a node or token against several strings. A kind set created withnodeKinds()ortokenKinds()reads the kind natively, which is faster.The rule belongs to the new
biomePlugindomain. Biome doesn’t enable this domain automatically, so enable it in the linter configuration of your plugin project.if (node.kind === "JS_CALL_EXPRESSION" || node.kind === "JS_NEW_EXPRESSION") {} -
#13271
31fad4aThanks @dyc3! - Added the nursery ruleuseBiomeTopLevelTypes, which reports the use ofnodeKinds(),tokenKinds(), orunion()inside a function. The rule belongs to thebiomePlugindomain.import { defineRule, nodeKinds } from "@biomejs/runtime/plugin";export const rule = defineRule({run(node) {return nodeKinds("JS_CALL_EXPRESSION").has(node);},}); -
#13191
4a21426Thanks @dyc3! - Added the new nursery ruleuseConsistentIndexedObjectStyle, which requires one style for object types with arbitrary keys. By default, it requires theRecordtype instead of index signatures and mapped types.// reported, prefer `Record<string, number>`interface Scores {[name: string]: number;} -
#13205
adde697Thanks @dyc3! - Added the nursery ruleuseDescribeFunctionTitle, which reports test suites (describeblocks) whose title is a string or a.nameproperty that repeats the name of an imported value, and suggests passing the value itself as the title.import { myFunction } from "./myFunction";describe("myFunction", () => {}); // reported -
#13206
32daef0Thanks @dyc3! - Added the nursery ruleuseEarlyContinue, which reports anifstatement that wraps the rest of a loop body and suggests skipping the iteration early withcontinueinstead.for (const item of items) {if (item.isActive) {process(item);save(item);}} -
#13211
aaf89d6Thanks @dyc3! - Added the nursery ruleuseExpectEqualityMatcher, which reports assertions that compare two values with===or!==insideexpect()and check the result against a boolean. Using an equality matcher instead makes failing tests show both values.// Invalidexpect(total === 10).toBe(true);// Validexpect(total).toBe(10); -
#13092
432e8c8Thanks @dyc3! - Added the nursery ruleuseExpectToHaveLength, which reports tests that check thelengthproperty withtoBe(),toEqual(), ortoStrictEqual(), and suggests usingtoHaveLength()instead.expect(files.length).toBe(1); -
#13091
6f231d0Thanks @dyc3! - Added the nursery ruleuseExpectToStrictEqual, which reports tests that compare values withtoEqual(), and suggests usingtoStrictEqual()instead.toEqual()ignores properties set toundefined, so the following test passes even though the two objects are different.expect({ a: "a", b: undefined }).toEqual({ a: "a" }); -
#13215
3677e52Thanks @dyc3! - Added the new nursery ruleuseTanstackQueryExhaustiveDependencies, which reports TanStack Query options whosequeryKeydoesn’t include every value thatqueryFnuses. When the key misses a value, changing that value doesn’t fetch new data, and the query keeps returning data for the old value.function Todo({ todoId }) {useQuery({queryKey: ["todo"],queryFn: () => fetchTodo(todoId),});} -
#13212
32f5c05Thanks @dyc3! - Added the nursery ruleuseTanstackQueryMutationPropertyOrder, which requiresonMutateto come beforeonErrorandonSettledin the options of TanStack Query’suseMutation. The type of the value thatonMutatereturns can be wrong in a property that comes before it.import { useMutation } from "@tanstack/react-query";useMutation({mutationFn: (todo) => saveTodo(todo),onError: (error, todo, saved) => restoreTodo(saved.previousTodo),onMutate: (todo) => ({ previousTodo: readTodo(todo.id) }),}); -
#13103
c3f850eThanks @dyc3! - Added the nursery ruleuseTopLevelDescribe, which reports tests and hooks that are not inside adescribeblock. ThemaxTopLevelDescribesoption also limits how many top-leveldescribeblocks a file can have.test("adds two numbers", () => {}); -
#13344
60da8a9Thanks @Jayllyz! - Improved the performance of GritQL plugins on files with many matches. Evaluation time no longer grows quadratically with the number of matches. -
#13008
01ce2ddThanks @ematipico! - Improved Astro cross-language JavaScript analysis by resolving embedded bindings and references through Astro scopes instead of document-wide name matching. -
#13011
a5aa4f2Thanks @ematipico! - Fixed #12818:useFilenamingConventionnow reports a filename diagnostic once per HTML, Vue, Svelte, or Astro document instead of once per embedded JavaScript snippet. -
#11372
6ce9395Thanks @renovate! - Improved how Biome aligns edits in diagnostic fix previews. Suggested fixes now group nearby edits more clearly, which can change which repeated lines are shown as unchanged. -
#13273
9add717Thanks @tats-u! - Fixed #13267:biome migrate prettiernow enablesmarkdown.parser.frontmatter, matching Prettier’s parsing of YAML frontmatter in Markdown files. -
#13013
e2a8e85Thanks @ematipico! - Implemented the runtime default-export case from #11463 with the newnoAstroComponentDefaultExportnursery rule. The rule reports runtime default exports in Astro component frontmatter while allowing named and type-only exports.---export default function render() {}--- -
#13010
8bdb36cThanks @ematipico! - Fixed #12956:useImportTypenow distinguishes Astro template type and value uses, whileuseConstandnoVaraccount for template writes. Cross-language references now prevent unsafe unused-variable rename suggestions. -
#13015
2ec6bbeThanks @ematipico! - Fixed #5242: the HTML-family formatter now collapses whitespace in staticclassattributes and formats validstyleattributes as inline CSS declarations. Component props, dynamic Astro template values, and style attributes containing invalid CSS remain conservative. Embedded replacements also recompute parent layout so formatting converges in one pass.<div class=" card selected " style="color:red;font-size:10px"></div><div class="card selected" style="color: red; font-size: 10px;"></div> -
#13018
cfb4467Thanks @ematipico! - Fixed #12956: React, React Native, and Next.js rules that rely on framework-specific JSX behavior no longer report Astro template expressions. Mixed-framework projects can enable those rule domains without receiving React- or Next-specific diagnostics for Astro markup such as<head>,<img>, componentchildrenprops, string refs, Astro list rendering, or Polyfill.io scripts. -
#12419
03b0eddThanks @vibbix! - Fixed #9768:noDescendingSpecificityno longer reports nested selectors that style different elements. The following code is now valid:.aaa {ul li {&:hover { color: #1684fc; }}}.bbb {a {&:hover { background: #fff; }}}The rule now reports
a:hover { color: red; }followed bya { color: blue; }, as Stylelint does, and ignores rules without declarations. -
#13103
c3f850eThanks @dyc3! - Fixed the detection ofdescribeblocks in the test rulesnoIdenticalTestTitle,useTestHooksOnTop, anduseTestHooksInOrder. These rules treateddescribe.todo,describe.shuffle,test.describe.parallel, andtest.describe.serialas tests, and they didn’t recognize conditional blocks such asdescribe.skipIf(condition)("title", () => {}). As a result, they didn’t check the tests and hooks inside those blocks.For example,
noIdenticalTestTitlenow reports the second test:test.describe.serial("checkout", () => {test("pays", async ({ page }) => {});test("pays", async ({ page }) => {});});The nursery rule
useValidTestTitlenow also checks the titles of tagged-template tables such astest.each`table`("title", () => {})and of conditional calls such astest.skipIf(condition)("title", () => {}). -
#12548
c919f1cThanks @pkallos! - FixeduseNullishCoalescingreportinginert || undefinedwheninertis destructured with a default value, such as{ inert = false }. -
#12419
03b0eddThanks @vibbix! - FixednoDuplicateSelectorsmissing some duplicates. The rule now reports these selectors:.c:is(.a .b) {}:is(.a .b).c {}[data-progress="50%"] {}[data-progress="50%"] {} -
#13262
b359a58Thanks @GBra-4-669! - Fixed #13258: the HTML parser no longer panics when a CDATA section starts with a second<![CDATA[marker. The marker is kept as literal text. -
#13301
d06ae5dThanks @dyc3! - Fixed #13299: the HTML formatter no longer adds a line break between whitespace-sensitive siblings that touch in the source, such as an element next to a self-closing element, a Svelte{@render}tag, or a text expression. The line break rendered as a space that wasn’t in the source.<p><span class="label">label</span><img src="image.png"><span class="hint">hint</span><span class="label">label</span><img src="image.png"><span class="hint">hint</span></p> -
#13180
ee7e535Thanks @GBra-4-669! - Fixed #13178: the JS parser no longer panics onimport.deferorimport.sourcewhen either is parsed as an expression without a following parenthesized argument list. It reports a syntax error instead. -
#13269
b6e7d37Thanks @andrew-hesse! - Fixed #13268: the Markdown formatter no longer pairs emphasis markers across paragraphs of a blockquote.> a _**, b> a ___, b>> c 20**.> c 20__. -
#13372
399f3a1Thanks @dyc3! - Fixed #13334: the Markdown formatter now usesindentWidthto indent the content of list items, as Prettier does withtabWidth. Some content keeps its current alignment, such as blockquotes, HTML blocks, and lists inside blockquotes.With
indentWidthset to4:- parentsecond paragraph- childsecond paragraph- child -
#13083
a0acfd5Thanks @jfmcdowell! - Fixed a Markdown parser hang on block quote lines that contain only spaces after the>. For example, Biome no longer hangs when the second line below has two or more spaces after the>:- > - a> -
#13375
70d6154Thanks @garysassano! - Fixed the HTML formatter adding a line break between a Svelte block ({#if},{#each},{#await},{#key},{#snippet}) or tag ({@const},{let},{@debug}) and a sibling that touches it in the source. Svelte keeps that line break as a text node, so the page rendered a space that wasn’t in the source.<p>Total:{#each items as item}Total:{#each items as item}<b>{item}</b>{/each}.{/each}.</p> -
#13012
ef2d71aThanks @ematipico! - Fixed #12707:useValidAriaValuesno longer reports Astro template-literal attributes that contain substitutions because their runtime value is unknown. Static template-literal attributes remain checked. -
#13184
3f72ebeThanks @dyc3! - FixednoFloatingPromises, which now detects unhandled promises returned through generic class methods, such asfactory.create<Promise<void>>(). -
#13342
eb51fdbThanks @Jayllyz! - Improved the performance of GritQL plugins, especially for plugins that report many matches in large files. -
#13009
4ea9690Thanks @ematipico! - Fixed #12956:noUndeclaredVariablesnow respects Astro server and client scopes,define:vars, and type/value namespaces.noUnusedVariables,noUnusedImports, andnoUnusedFunctionParametersnow follow resolved Astro symbols and treat write-only template references as unused. -
#13193
f0e63ffThanks @dyc3! - Improved performance of all parsers. On large projects,biome lintis up to 1.7% faster. -
#13016
5d4d474Thanks @ematipico! - Fixed #12956: Biome now leaves the contents of unsupported<script>and<style>blocks unchanged instead of trying to format them as JavaScript or CSS. This includes embedded languages such as Less, SCSS, PostCSS, CoffeeScript, and customlangortypevalues.<style lang="less">@color: red;.card { color: @color; }</style><script lang="coffee">square = (value) -> value * value</script>Malformed Astro frontmatter, expressions, scripts, and styles also retain their original text while Biome formats the surrounding markup.
-
#13208
c4d56beThanks @dyc3! - Added the nursery rulenoCanvasToImage, which reports canvases that are converted to an image or copied pixel by pixel only to be drawn onto another canvas. Pass the canvas todrawImage()instead.const image = await loadImage(canvas.toDataURL());context.drawImage(image, 0, 0); -
#13195
f126262Thanks @dyc3! - Added trivia APIs to JavaScript plugins.leadingTrivia()andtrailingTrivia()on nodes and tokens return the whitespace, line breaks, and comments around them, andleadingComments()andtrailingComments()on tokens return only the comments. Each piece has anisComment()method.registerDiagnostic()now also accepts tokens and trivia pieces, and highlights only that element.const keyword = statement.declaration.token("kindToken");for (const comment of keyword.leadingComments()) {if (comment.text.includes("TODO")) {registerDiagnostic(comment, "warning", "Resolve this TODO.");}} -
#12962
2ae8b51Thanks @dyc3! - Improved the performance of linting with many rules enabled, such as Biome’s recommended rules. In exchange, Biome can use more memory, because each thread now keeps some freed memory for reuse. -
#12937
4dc698aThanks @b84330808! - Fixed.editorconfigsection globs that have a negative number in a numeric range.[{-3..3}]now matches the files named-3to3, instead of only a file named{-3..3}. -
#12960
9ff9ee4Thanks @vibbix! - Fixed a crash when a dependency’spackage.jsonmaps anexportsentry to its own package name, such as"exports": { "sass": "my-package" }. Like Node.js, Biome now rejectsexportstargets that don’t start with./. -
#12960
9ff9ee4Thanks @vibbix! - FixednoUnusedClassesreporting classes of SCSS partials loaded with@use,@forwardor@import. Biome now resolves these loads the way Sass does, including partials such as_card.scss,indexfiles, and import-only files, so a class in_card.scsscounts as used when a component importsstyles.scss, which contains@use "card". -
#13139
103dc4eThanks @dyc3! - MadenoArrayForEach,noArraySortForMinMax,noBooleanSortComparator,noNegatedArrayPredicate,noReturnArrayPush, anduseIteratorZipagree on which values are known not to be arrays. They now all ignore calls on literals, object literals, functions, classes,newexpressions other thannew Array()or a typed array, and variables whose type annotation, type alias, orconstvalue is one of those or a built-in type such asMap,Set, orstring | undefined. A type declared in the file with the same name as a built-in type, such astype Set<T> = T[], is no longer treated as the built-in type.// No longer reported by noArrayForEachnew Collection().forEach((value) => console.log(value)); -
#12941
ea3b347Thanks @dyc3! - Improved the performance ofbiome lint,biome check, andbiome cion Linux. Biome now spends less time in the operating system for each file it analyzes, so linting large projects is faster. -
#13343
b9fdabaThanks @ematipico! - Fixed range formatting in the editor for Vue, Svelte, and Astro files when full HTML support is disabled. Selections that end before the script block no longer format it or report an error, and edits for selections inside the script block are now applied at the selected location. -
#13007
6981d43Thanks @ematipico! - Recognized Astro<style define:vars>keys as custom-property declarations. ThenoUndeclaredCustomPropertiesrule now accepts statically supplied variables and avoids diagnostics when dynamic keys may provide a declaration. -
#13001
11027d4Thanks @ematipico! - Fixed #10547: Astro files can now place<!doctype html>after top-level elements such as inline scripts without parse errors, and formatting preserves the source order.<script is:inline>console.log("ready");</script><script is:inline>console.log("ready");</script><!doctype html> -
#13343
b9fdabaThanks @ematipico! - Fixed #13257: untitled VS Code documents now use their existing workspace project, retain it across workspace-folder removal and re-addition, avoid creating projects from non-file URIs, and preserve URI extensions for language detection. -
#13345
c071912Thanks @dyc3! - Fixed #13335: Svelte{#snippet}blocks with type parameters, such as{#snippet row<T extends string>(item: T)}, are now parsed and formatted. Invalid snippet signatures no longer make the linter panic. -
#13343
b9fdabaThanks @ematipico! - Fixed #12317 and #12984: VCS ignore matching now preserves logical paths for external and symlinked inputs, normalizes stdin paths, combines coexisting.gitignoreand.ignorerules, respects nested ignore precedence and Git’s repository exclude file, and reloads ignore state when ignore files change. -
#13014
0c0dfe2Thanks @ematipico! - Fixed #12349: Biome now reads quote character references, such as"and&[#39](https://github.com/biomejs/biome/issues/39);, as string quotes in the CSS of HTML and SVGstyleattributes. Valid values such asfont-family: "Rotis Sans"no longer produce CSS parse diagnostics. -
#13356
abe482cThanks @github-actions! - Updated the Baseline data of theuseBaselinerule. The rule now reports CSS features according to their latest Baseline status.
2.6.10 Latest
Patch Changes
-
#13387
00e98fcThanks @dyc3! - Added the nursery rulenoAmd, which reports AMDdefine()andrequire()calls that load modules from a list, so they can be replaced withimportstatements.define(["a", "b"], function (a, b) {}); -
#13357
9407920Thanks @dyc3! - Added the nursery rulenoArrayReduce, which disallows thereduce()andreduceRight()array methods in favor of loops and methods such asmap()andfilter(). Calls whose function only returns a single arithmetic, comparison, or bitwise operation, such as(total, item) => total + item, are allowed.const counts = words.reduce((counts, word) => {counts[word] = (counts[word] ?? 0) + 1;return counts;}, {}); -
#13358
d82324eThanks @dyc3! - Added the nursery rulenoBreakInNestedLoop, which reportsbreakstatements without a label inside nested loops and insideswitchstatements in loops. Enable thecheckContinueoption to also reportcontinuestatements without a label.for (const item of items) {for (const child of item.children) {break; // reported}} -
#13488
674687aThanks @dyc3! - Added the nursery rulenoCollectionBracketAccess. It reports square brackets used on aMap,Set,WeakMap, orWeakSet, which read or change a property of the object instead of one of its entries.const map = new Map();map["foo"] = "bar"; -
#13477
de81ca9Thanks @dyc3! - Added the nursery rulenoConvexCollectInQuery, which reports Convex database queries that load every matching document with.collect(). Use.take()or.paginate()instead.const messages = await ctx.db.query("messages").collect(); -
#13323
fae973fThanks @dyc3! - Added the nursery rulenoConvexDuplicateIndexes, which reports Convex database indexes whose fields are the first fields of another index on the same table. The rule is part of theconvexdomain.defineTable({ author: v.string(), channel: v.string() }).index("by_author", ["author"]) // reported.index("by_author_and_channel", ["author", "channel"]); -
#13481
4de1a09Thanks @dyc3! - Added the nursery rulenoConvexOldRegisteredFunctionSyntax, which reports Convex queries, mutations, and actions registered with a plain function instead of an object. The object syntax lets you declare anargsvalidator.export const list = query(async (ctx) => {return await ctx.db.query("messages").collect();}); -
#13325
e7dab31Thanks @dyc3! - Added the new nursery rulenoConvexProcessEnvto theconvexdomain. It reports uses ofprocess.envin theconvexfolder of a package, and recommends reading environment variables from the typedenvobject exported by_generated/serverinstead. Its unsafe fix replacesprocess.envwithenvand adds the import.convex/giphy.ts const apiKey = process.env.GIPHY_KEY; -
#13324
6609054Thanks @dyc3! - Added the nursery rulenoConvexQueryFilter, which reports.filter()calls on Convex database queries. The database reads every document in the query before.filter()drops the ones that don’t match, so.withIndex()or filtering the collected results in code is preferred. The rule belongs to theconvexdomain.const messages = await ctx.db.query("messages").filter((q) => q.eq(q.field("author"), args.author)).collect(); -
#13476
cfec26aThanks @dyc3! - Added the nursery rulenoConvexTimeOrRandomInQueries, which reports Convex queries that read the current time or generate random values. Convex caches query results, so these values can be outdated or stay the same between calls.export const pickWinner = query({handler: async (ctx) => {const entries = await ctx.db.query("entries").collect();return entries[Math.floor(Math.random() * entries.length)];},}); -
#13300
1001924Thanks @dyc3! - Added the nursery rulenoConvexTopOfHourCrons, which reports Convex cron jobs scheduled at the start of the hour, the busiest time for most apps.crons.hourly("cleanup", { minuteUTC: 0 }, internal.tasks.cleanup); -
#13482
0466735Thanks @dyc3! - Added the nursery rulenoConvexWrongRuntimeImports, which reports files in a Convexconvexfolder that run in the Convex runtime but import a file with the"use node"directive.// convex/payments.ts, where convex/stripe.ts starts with "use node"import { formatAmount } from "./stripe"; -
#13371
adae706Thanks @dyc3! - Added the nursery rulenoDuplicateExports. It reports a module or TypeScript namespace that exports the same name more than once, or has more than one default export. It also reports twoexport * fromstatements that export the same name from different declarations. The rule belongs to theprojectdomain.export const foo = 1;function bar() {}export { bar as foo }; -
#13395
3f1f7ceThanks @dyc3! - Added the nursery rulenoDuplicateIfBranches, which reports branches of anifstatement that run the same code as the branch right before them.if (value === "a") {doThing();} else if (value === "b") {doThing();} -
#13504
ae4791fThanks @dyc3! - Added the nursery rulenoMixedReturns, which reports functions where somereturnstatements return a value and others don’t, including functions that can reach the end of their body after returning a value elsewhere.function doSomething(condition) {if (condition) {return true;}} -
#13366
48da9c2Thanks @dyc3! - Added the nursery rulenoMutableExports. It reports exported variables declared withletorvar, which other modules see change whenever they are reassigned.export let count = 1; -
#13505
72c3a7eThanks @dyc3! - Added the nursery rulenoNegatedComparison, which reports equality comparisons that are negated as a whole and suggests the opposite operator instead.const isDifferent = !(a === b); // use `a !== b` instead -
#13282
5201ae5Thanks @dyc3! - Added the nursery rulenoOuterScopeInIsolatedFunctions, which reports uses of variables,this, andsuperfrom outside a function that runs apart from the code around it, such as a function passed tomakeSynchronous()or marked with an@isolatedcomment.const url = "https://example.com";makeSynchronous(async () => {const response = await fetch(url); // `url` doesn't exist where the function runsreturn response.text();}); -
#13474
100d4d7Thanks @dyc3! - Added the nursery rulenoTailwindLegacyImportantfor JavaScript and HTML. It reports Tailwind CSS classes that put the!important modifier at the start, as Tailwind CSS v3 did, and moves the!to the end of the class name.<div className="!flex hover:!bg-red-500" />; // use `flex!` and `hover:bg-red-500!` -
#13224
19fb503Thanks @dyc3! - Added the new nursery rulenoTanstackQueryUnstableDeps, which reports the object returned by a TanStack Query hook, such asuseQueryoruseMutation, when it is used directly as a dependency ofuseEffect,useMemo, oruseCallback. This object can be a new object on every render, so React treats the dependencies as changed on every render.const mutation = useMutation({ mutationFn });const callback = useCallback(() => mutation.mutate("hello"), [mutation]); -
#13371
adae706Thanks @dyc3! - Added the nursery rulenoUselessReExportAll. It reportsexport * froma module that has no named exports, which exports nothing. The rule belongs to theprojectdomain.// foo.js only has a default export.export * from "./foo.js"; -
#12560
1413bf8Thanks @dyc3! - Added the nursery rulenoVueComputedPropertyCall, which disallows calling a Vue computed property whose value is not a function. Calling such a value throws an error when the code runs.<script>export default {computed: {total() {return 42;},},methods: {log() {console.log(this.total()); // reported},},};</script> -
#13322
025c012Thanks @dyc3! - Added the nursery rulenoVueContentOutsideBlock, which reports text and code placed outside of the top-level blocks of a Vue component. Vue drops this content, so it never renders or runs.For example,
console.log(1);below is reported:<template><div>Hello</div></template>console.log(1);<script>export default {};</script> -
#13369
7940a3fThanks @dyc3! - Added the nursery ruleuseConsistentDefaultExportStyle, which enforces whether default-exported functions and classes are declared inside theexport defaultstatement or declared separately and exported by name.function foo() {}export default foo; // reported -
#13248
b7a3678Thanks @dyc3! - Added the nursery ruleuseConsistentExistenceIndexCheck, which reports checks such asindex < 0,index >= 0, andindex > -1on the result ofindexOf(),lastIndexOf(),findIndex(), orfindLastIndex(), and suggests comparing with-1instead.const index = list.indexOf(item);if (index < 0) {} -
#13305
4bcb0eeThanks @dyc3! - Added the nursery ruleuseConvexAccessControl, which reports exported Convex queries, mutations and actions whose handler doesn’t call an access control function, such asrequireUser(ctx). The rule belongs to theconvexdomain.import { mutation } from "./_generated/server";export const send = mutation({args: {},handler: async (ctx) => {await ctx.db.insert("messages", { body: "hello" });},}); -
#13475
1cb1e56Thanks @dyc3! - Added the nursery ruleuseConvexArgsValidator, which requires Convex queries, mutations, and actions to define anargsvalidator, so that Convex checks the arguments of every call before the handler runs.export const list = query({handler: async (ctx) => {return await ctx.db.query("tasks").collect();},}); -
#13473
88aa8a5Thanks @dyc3! - Added the nursery ruleuseConvexExplicitTableIds, which reports Convexdb.get(),db.patch(),db.replace(), anddb.delete()calls that don’t pass the table name as the first argument.const message = await ctx.db.get(messageId); -
#13503
764aba8Thanks @dyc3! - Added the nursery ruleuseCustomErrorDefinition, which enforces a consistent way of defining custom error classes. It reports error classes whose name doesn’t start with an uppercase letter and end withError, that don’t set theirnameproperty to the class name, that assignthis.messageinstead of passing the message tosuper(), or that don’t forward anoptionsparameter to a built-in error.class FooError extends Error {constructor(message) {super();this.message = message;}} -
#13365
6bdb1ffThanks @dyc3! - Added the nursery ruleuseElseIf. It reports anifstatement that follows anotherifstatement and compares the same variable or property against a different value, since only one of them can match. The rule offers an unsafe fix that addselsebefore the secondifstatement.if (status === "loading") {}if (status === "error") {} -
#13351
73a0cb6Thanks @dyc3! - Added the nursery ruleuseNegativeIndex, which reports index arguments ofslice(),at(),subarray(),splice(), andtoSpliced()that subtract a number from.length, and suggests a negative index instead.foo.at(foo.length - 1); // reported: write `foo.at(-1)` instead -
#13306
74c72aeThanks @dyc3! - Added the nursery ruleuseSetMethods, which reports code that combines or comparesSets by copying them into arrays, and suggests the matchingSetmethod, such asunion(),intersection(),difference(),isSubsetOf(), orisDisjointFrom().const a = new Set([1, 2]);const b = new Set([2, 3]);new Set([...a, ...b]);[...a].filter((value) => b.has(value));[...a].every((value) => b.has(value));a.intersection(b).size === 0; -
#13326
c3bd8baThanks @dyc3! - Added the nursery ruleuseTanstackQueryQueryOptions, which reports TanStack Query options that setqueryKeyorqueryFnwhere the query is used, and query keys that are written by hand in query client methods. Creating the options once withqueryOptions()keeps the key and the function of a query together.import { useQuery, useQueryClient } from "@tanstack/react-query";function Todo({ id }) {const query = useQuery({ queryKey: ["todo", id], queryFn: () => fetchTodo(id) });const queryClient = useQueryClient();const refresh = () => queryClient.invalidateQueries({ queryKey: ["todo", id] });} -
#13431
c8e0488Thanks @ematipico! - Improved the performance of commands that process files, such asbiome check,biome lintandbiome formatbetween 14% and 18%. -
#13367
addf04aThanks @dyc3! - Fixed #13320:noUnnecessaryConditionsno longer reports loops whose condition is the literaltrue, such aswhile (true) {},do {} while (true), andfor (; true;) {}. -
#13608
c1ac8a0Thanks @ematipico! - Fixed #13574: the Tailwind CSS rules no longer make Biome scan the whole project. Whentailwind.stylesheetis set, Biome reads only that stylesheet and the files it imports. It now reports an error if the stylesheet is missing, outside the project folder, or force-ignored byfiles.includes.useTailwindSortedClasses,noTailwindRawColors,noTailwindRestrictedClasses, andnoTailwindConflictingClassesno longer belong to theprojectdomain. -
#13571
7ac32bdThanks @dyc3! - Fixed #13511: Biome no longer skips indexing a project located inside a directory that the scanner ignores by default. These are meant to be places where the scanner should not look for files, but if a project is explicitly located inside one, it should still be indexed. -
#13484
c12cd1cThanks @dyc3! - FixednoFloatingPromisesreporting promises that are handled through a method named by a string literal. The following code is no longer reported:declare const promise: Promise<number>;promise["then"]((value) => value, () => {});promise["catch"](() => {}); -
#12903
16aaa88Thanks @yeliex! - Added the nursery ruleuseConsistentBooleanProps. When enabled, it requires<Foo bar={true} />by default. Setmodeto"implicit"to require the shorthand<Foo bar />. -
#13540
f1259d2Thanks @dyc3! - Fixed #13538: Tailwind classes with an arbitrary value that calls a function whose name starts with--, such asw-[--spacing(80)]ortext-[--alpha(red/50%)], are parsed correctly again.useTailwindSortedClassesno longer treats them as unknown classes or moves them to the front. -
#13420
c199c75Thanks @ematipico! - Fixed a bug where the Biome Scanner would index the same dependencies innode_modulesmore than once. This would result a slightly faster scanner. -
#13468
a98859cThanks @ematipico! - Improved the performance of formatting JavaScript and TypeScript code. -
#12681
6dbca4cThanks @NavpreetSSidhu! - Fixed #12625:noComponentHookFactoriesno longer reports a capitalised object property inside a function unless its function renders JSX or calls a hook.function methods(player) {return { Next: () => player.next() };} -
#13575
644c81aThanks @carlosrobert0! - Fixed #12991: the CSS parser no longer panics on a stray)in an@layerprelude, such as@layer)or@layer a b){}. It now reports a parse error and recovers. -
#12550
6b63f72Thanks @atharv1205! - Fixed the formatter output changing on a second run for logical chains. The formatter now flattens a parenthesized right operand with the same logical operator and more than two operands into the surrounding chain on the first pass. Previously, the operands of the removed group stayed together and the next format changed the output again.return (aaaaaaaaaaaaaaaaaaaa &&bbbbbbbbbbbbbbbbbbbbbbb &&cccccccccccccccccccc && dddddddddddddddddddddd &&cccccccccccccccccccc &&dddddddddddddddddddddd &&eeeeeeeeeeeeeeeeeeeeeeeee); -
#13498
4755be1Thanks @dyc3! - Fixed #13396: the Markdown formatter no longer duplicates an HTML comment at the start of an HTML block on every format when the HTML formatter is enabled.<!-- foo --><!-- foo -->*bar*<!-- foo -->*bar* -
#13497
8f3c808Thanks @dyc3! - Fixed #13397: the Markdown formatter no longer turns a paragraph into a heading when a lazy continuation line looks like a setext heading underline. The formatter adds the block quote prefix or list indentation to such a line, so it now escapes the line’s first marker.> foobar===> bar> \=== -
#13499
e2fff80Thanks @dyc3! - Fixed #13466: the Markdown formatter no longer merges a whitespace-only line in a fenced code block inside a list item with the next line. The line is now printed as an empty line, and the next line keeps its indentation.1. Item:```shellecho aecho becho b``` -
#13496
fb8cedeThanks @dyc3! - Fixed #13408: the Markdown parser now keeps the content of a fenced code block in a list item inside a block quote when a tab follows the>marker. Previously the code block ended after its opening fence, and the formatter moved the code out of the block.> - ```text> hello> ``` -
#13495
8a89af1Thanks @dyc3! - Fixed #13386: the Markdown parser no longer reports a false “Expected a list item” diagnostic when a list inside a block quote ends with a fenced code block or heading and a list item outside the quote follows a blank line.- > - ```text> hello> ```- > - ```text> there> ``` -
#13289
b6b42d7Thanks @srikar2130! - Fixed part of #13165: the CSS formatter no longer double-indents the arguments of a functional pseudo-class in a nested selector without a leading combinator, such as&:has(...)or.a:not(...). -
#13528
66386c5Thanks @dyc3! - Fixed #13525:noProcessGlobalno longer offers a fix for accesses through the global object, such asglobalThis.processorwindow["process"]. Adding an import doesn’t change what these accesses refer to, sobiome lint --writeno longer loops on them. -
#13528
66386c5Thanks @dyc3! - Fixed #13527: the fix ofnoProcessGlobalnow adds theprocessimport at the top level of the module instead of inside a TypeScript namespace. -
#13491
cc402faThanks @2tsoftwareapp! - Fixed #13428, wherenoUntrustedLicensesreported valid SPDX license expressions with the+(“or later”) operator (such asApache-2.0+andMPL-2.0+) as untrusted. -
#13160
b56e180Thanks @dyc3! - Fixed #13108:noUnusedExpressionsno longer reportssatisfiesexpressions used as statements, such asshape satisfies never;for exhaustiveness checks. -
#13514
aef78f6Thanks @Yshuro! - Fixednode_semvercaret range expansion for^0.0.0and^0.0so that they match the expected upper bounds (<0.0.1and<0.1.0, respectively) when resolvingpackage.jsonversion ranges. -
#13405
771de3eThanks @dyc3! - Fixed #13392:useNullishCoalescingno longer reportsflag || otherwhenflagis a parameter whose default value removesundefinedfrom its type, such asflag: boolean | undefined = false. -
#13281
b6c1d06Thanks @GBra-4-669! - Fixed #13280: the suppression parser no longer panics on non-ASCII whitespace. -
#12945
18975d9Thanks @vibbix! - FixednoUnknownTypeSelectorreportingfromandtorules directly inside SCSS mixins and@includeblocks that Sass places inside@keyframes:@mixin frames {from { opacity: 0; }to { opacity: 1; }}@keyframes fade {@include frames;} -
#13520
f733558Thanks @dyc3! - Fixed #11942:useArrayLiteralsno longer offers a fix forArray(...args),Array(x, ...args), and other calls whose spread arguments may expand to a single argument. The rule still reports them, but rewritingArray(...args)to[...args]changes the result whenargsis a single number. -
#13522
41a4f06Thanks @dyc3! - Fixed #13331: the safe fix ofuseImportTypewith theseparatedTypestyle no longer turns a default import used as a value intoimport type. For example,import spec, { type A, B } from "./mod"now keepsspecas a value import. -
#13559
dc7e82aThanks @MaxWang007! - Fixed #13548: the unsafe fix ofuseLiteralKeysnow escapes"and'when it turns a computed key into a string literal.['a"b']and[`a"b`]are rewritten to"a\"b"instead of invalid syntax. A computed key that contains a raw line break is left unchanged. -
#13565
32ada57Thanks @diluuuu10! - Fixed #13546: Fixed a false positive inuseNamedCaptureGroupby correctly handling escaped parentheses in RegExp strings. -
#13560
735dddcThanks @diluuuu10! - Fixed #13547: Updated theuseUnifiedTypeSignaturesunsafe fix to wrap function types in parentheses when merging them into a union type, preventing invalid TypeScript syntax. -
#13485
f50b262Thanks @dyc3! - Improved type inference forPromise. Biome now knows every static member that the TypeScript standard library declares for it, and the types of theresolveandrejectcallbacks passed to anew Promise()executor. For example,noFloatingPromisesnow reports the unhandled Promise created byPromise.withResolvers():Promise.withResolvers().promise; -
#13506
87ad81bThanks @dyc3! - Fixed #13380:useNumberNamespaceno longer offers a fix whenNumberis shadowed by a local binding, because the fix changed the runtime behavior of the code. The rule still reports the global. -
#13502
ee1f211Thanks @dyc3! - Fixed #11938:noUselessUndefinedInitializationno longer offers a fix forvardeclarations. Removing= undefinedfrom avardeclaration inside a loop or from a redeclaration changed the behavior of the program, becausevar x;doesn’t reset the variable. -
#13501
b11b273Thanks @dyc3! - Fixed a false positive inuseTanstackQueryExhaustiveDependencies: the rule no longer reports the variable that holds the query key when the query function reads it. Previously, the fix added the variable to its own value.function useTodo(id, queryClient) {const queryKey = ["todo", id];return useQuery({queryKey,queryFn: () =>fetchTodo(id).then((todo) => {queryClient.setQueryData(queryKey, todo); // No longer reported.return todo;}),});} -
#13595
d15af62Thanks @dyc3! - Fixed #10716:biome migratenow migrates"recommended": trueto"preset": "recommended"regardless of the whitespace and comments around the value. Previously, configurations such as{ "recommended": true }were migrated to"preset": "none", which disabled the recommended rules. -
#12635
2936d85Thanks @NavpreetSSidhu! - Fixed #12626:usePlaywrightValidDescribeCallbackno longer reports calls to adescribefunction declared in the same file. -
#13484
c12cd1cThanks @dyc3! - FixednoFloatingPromisesandnoMisusedPromisesnot recognizing thePromiseLikethat the methods of aPromiseLikevalue return. For example,noFloatingPromisesnow reports the following code:declare const thenable: PromiseLike<number>;thenable.then((value) => value); -
#13618
505a73fThanks @avens19! - Fixed #13588: rules that scan the project, such asnoFloatingPromises, are faster in projects with many dependencies. The CLI no longer prepares to watch dependency folders when it doesn’t watch the project. -
#12865
7166077Thanks @carlosrobert0! - Fixed #5172: the JUnit reporter now includes formatting diagnostics, sobiome checkandbiome formatlist the affected files. Test cases are now grouped into one<testsuite>per file. -
#13270
2d30ad9Thanks @dyc3! - Added the new nursery rulenoScssDeprecatedColorFunctions. It reports the deprecated Sass functions that read one channel of a color, such asred(),color.hue()andopacity(), and suggestscolor.channel()instead.a {opacity: opacity($brand);} -
#13218
840b293Thanks @dyc3! - Fixed #13088:useHeadingContentnow recognizesset:htmlandset:textas heading content inside Astro template expressions. -
#13567
6ea6489Thanks @dyc3! - Fixed #13563: Applying the unsafe fix ofnoConsoleno longer hangs when aconsolecall is used as a value, such as in a variable declaration, a function argument, or a ternary. The rule still reports these calls, but doesn’t offer a fix for them.const result = ok && console.log("x"); -
#13483
e3987d2Thanks @dyc3! - Fixed #13421: in Astro templates and in projects that depend onsolid-js, the rulesuseFocusableInteractive,noPositiveTabindex,noNoninteractiveTabindex,useAriaActivedescendantWithTabindex, andnoAriaHiddenOnFocusablenow recognize the lowercasetabindexattribute on JSX elements, and their diagnostics and fixes suggesttabindexinstead oftabIndex.The following code is no longer reported in a Solid project or inside an Astro template expression:
<div role="button" tabindex={0} onClick={() => {}} /> -
#13418
4de11d2Thanks @ematipico! - Fixed a bug where Biome couldn’t properly parse Svelte{#each}blocks when some syntax was used to define the keys. -
#13597
7a56cf9Thanks @dyc3! - Fixed #13588, a regression where Biome accidentally followed symbolic links insidenode_modules. -
#13521
3ad6f36Thanks @github-actions! - Updated the Baseline data of theuseBaselinerule. The rule now reports CSS features according to their latest Baseline status. -
#12587
e97ca39Thanks @kristoferma! - Fixed #10987:useErrorCausenow finds thecausein the last argument of a custom error class whose second argument isn’t an object, such asnew ErrorWithCode("message", "E_CODE", { cause: err }). Built-in errors keep their usual options position, which is the third argument forAggregateError:new AggregateError(errors, "message", { cause: err })is now valid, andnew AggregateError(errors, { cause: err })is now reported, because that object is the message and the cause is lost. -
#13430
b465622Thanks @dyc3! - Added the nursery rulenoVueRestrictedComponentOptions, which reports Vue component options that are listed in itscomponentOptionsoption.For example, with
"componentOptions": ["init", ["props", "*", "twoWay"]], the following component is reported twice:<script>export default {init() {},props: {name: { type: String, twoWay: true },},};</script>
© 2023-present Biome developers and contributors.