note: no summary for this digest release
Digest releases are listed without a summary. The original release notes for this version are below.
release-notesgithub.com/biomejs/biome · 645 lines
- ## 2.6.10
- ### Patch Changes
- - [#13387](https://github.com/biomejs/biome/pull/13387) [`00e98fc`](https://github.com/biomejs/biome/commit/00e98fc05e23bd1a55291da23574fa48675529ed) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noAmd`](https://biomejs.dev/linter/rules/no-amd/), which reports AMD `define()` and `require()` calls that load modules from a list, so they can be replaced with `import` statements.
- ```js
- define(["a", "b"], function (a, b) {});
- ```
- - [#13357](https://github.com/biomejs/biome/pull/13357) [`9407920`](https://github.com/biomejs/biome/commit/9407920ee3b72ae403eb1e01de77cb82a044c837) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noArrayReduce`](https://biomejs.dev/linter/rules/no-array-reduce/), which disallows the `reduce()` and `reduceRight()` array methods in favor of loops and methods such as `map()` and `filter()`. Calls whose function only returns a single arithmetic, comparison, or bitwise operation, such as `(total, item) => total + item`, are allowed.
- ```js
- const counts = words.reduce((counts, word) => {
- counts[word] = (counts[word] ?? 0) + 1;
- return counts;
- }, {});
- ```
- - [#13358](https://github.com/biomejs/biome/pull/13358) [`d82324e`](https://github.com/biomejs/biome/commit/d82324eda969e01100eeba9d1cc04394d3575a98) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noBreakInNestedLoop`](https://biomejs.dev/linter/rules/no-break-in-nested-loop/), which reports `break` statements without a label inside nested loops and inside `switch` statements in loops. Enable the `checkContinue` option to also report `continue` statements without a label.
- ```js
- for (const item of items) {
- for (const child of item.children) {
- break; // reported
- }
- }
- ```
- - [#13488](https://github.com/biomejs/biome/pull/13488) [`674687a`](https://github.com/biomejs/biome/commit/674687a4dcdc463fc914b46f1912561218f24090) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noCollectionBracketAccess`](https://biomejs.dev/linter/rules/no-collection-bracket-access/). It reports square brackets used on a `Map`, `Set`, `WeakMap`, or `WeakSet`, which read or change a property of the object instead of one of its entries.
- ```js
- const map = new Map();
- map["foo"] = "bar";
- ```
- - [#13477](https://github.com/biomejs/biome/pull/13477) [`de81ca9`](https://github.com/biomejs/biome/commit/de81ca905aecb36468fbdbba4ff437c51c73a983) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexCollectInQuery`](https://biomejs.dev/linter/rules/no-convex-collect-in-query/), which reports Convex database queries that load every matching document with `.collect()`. Use `.take()` or `.paginate()` instead.
- ```js
- const messages = await ctx.db.query("messages").collect();
- ```
- - [#13323](https://github.com/biomejs/biome/pull/13323) [`fae973f`](https://github.com/biomejs/biome/commit/fae973f9c455b3da1c654df89b664728c7e11781) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexDuplicateIndexes`](https://biomejs.dev/linter/rules/no-convex-duplicate-indexes/), which reports Convex database indexes whose fields are the first fields of another index on the same table. The rule is part of the `convex` domain.
- ```js
- defineTable({ author: v.string(), channel: v.string() })
- .index("by_author", ["author"]) // reported
- .index("by_author_and_channel", ["author", "channel"]);
- ```
- - [#13481](https://github.com/biomejs/biome/pull/13481) [`4de1a09`](https://github.com/biomejs/biome/commit/4de1a0976a1214647c157d308f6408d0384e2edd) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexOldRegisteredFunctionSyntax`](https://biomejs.dev/linter/rules/no-convex-old-registered-function-syntax/), which reports Convex queries, mutations, and actions registered with a plain function instead of an object. The object syntax lets you declare an `args` validator.
- ```js
- export const list = query(async (ctx) => {
- return await ctx.db.query("messages").collect();
- });
- ```
- - [#13325](https://github.com/biomejs/biome/pull/13325) [`e7dab31`](https://github.com/biomejs/biome/commit/e7dab31061bd969a93ef389909aace8c0b8e7304) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noConvexProcessEnv`](https://biomejs.dev/linter/rules/no-convex-process-env/) to the `convex` domain. It reports uses of `process.env` in the `convex` folder of a package, and recommends reading environment variables from the typed `env` object exported by `_generated/server` instead. Its unsafe fix replaces `process.env` with `env` and adds the import.
- ```ts
- // convex/giphy.ts
- const apiKey = process.env.GIPHY_KEY;
- ```
- - [#13324](https://github.com/biomejs/biome/pull/13324) [`6609054`](https://github.com/biomejs/biome/commit/6609054393fb2ce3253aed37a84fbd933beb9d38) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexQueryFilter`](https://biomejs.dev/linter/rules/no-convex-query-filter/), 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 the `convex` domain.
- ```js
- const messages = await ctx.db
- .query("messages")
- .filter((q) => q.eq(q.field("author"), args.author))
- .collect();
- ```
- - [#13476](https://github.com/biomejs/biome/pull/13476) [`cfec26a`](https://github.com/biomejs/biome/commit/cfec26a241ea931657750141128a987de14d8e06) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexTimeOrRandomInQueries`](https://biomejs.dev/linter/rules/no-convex-time-or-random-in-queries/), 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.
- ```js
- export const pickWinner = query({
- handler: async (ctx) => {
- const entries = await ctx.db.query("entries").collect();
- return entries[Math.floor(Math.random() * entries.length)];
- },
- });
- ```
- - [#13300](https://github.com/biomejs/biome/pull/13300) [`1001924`](https://github.com/biomejs/biome/commit/1001924412f9e612a6cd99654b788fcae527ee39) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexTopOfHourCrons`](https://biomejs.dev/linter/rules/no-convex-top-of-hour-crons/), which reports Convex cron jobs scheduled at the start of the hour, the busiest time for most apps.
- ```js
- crons.hourly("cleanup", { minuteUTC: 0 }, internal.tasks.cleanup);
- ```
- - [#13482](https://github.com/biomejs/biome/pull/13482) [`0466735`](https://github.com/biomejs/biome/commit/0466735888b8522112af6dad7f7c48971a8d8d97) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noConvexWrongRuntimeImports`](https://biomejs.dev/linter/rules/no-convex-wrong-runtime-imports/), which reports files in a Convex `convex` folder that run in the Convex runtime but import a file with the `"use node"` directive.
- ```ts
- // convex/payments.ts, where convex/stripe.ts starts with "use node"
- import { formatAmount } from "./stripe";
- ```
- - [#13371](https://github.com/biomejs/biome/pull/13371) [`adae706`](https://github.com/biomejs/biome/commit/adae706c4e9a3ca0a89bc1c1a3794bfa1cbca721) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noDuplicateExports`](https://biomejs.dev/linter/rules/no-duplicate-exports/). 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 two `export * from` statements that export the same name from different declarations. The rule belongs to the `project` domain.
- ```js
- export const foo = 1;
- function bar() {}
- export { bar as foo };
- ```
- - [#13395](https://github.com/biomejs/biome/pull/13395) [`3f1f7ce`](https://github.com/biomejs/biome/commit/3f1f7ce831e40a265bfd174f30ff9f2383459f54) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noDuplicateIfBranches`](https://biomejs.dev/linter/rules/no-duplicate-if-branches/), which reports branches of an `if` statement that run the same code as the branch right before them.
- ```js
- if (value === "a") {
- doThing();
- } else if (value === "b") {
- doThing();
- }
- ```
- - [#13504](https://github.com/biomejs/biome/pull/13504) [`ae4791f`](https://github.com/biomejs/biome/commit/ae4791f8cd630b89d23ea1c3b90a5fa14df56baf) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noMixedReturns`](https://biomejs.dev/linter/rules/no-mixed-returns/), which reports functions where some `return` statements return a value and others don't, including functions that can reach the end of their body after returning a value elsewhere.
- ```js
- function doSomething(condition) {
- if (condition) {
- return true;
- }
- }
- ```
- - [#13366](https://github.com/biomejs/biome/pull/13366) [`48da9c2`](https://github.com/biomejs/biome/commit/48da9c2347a52109745ece6c15ee740de91a03a5) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noMutableExports`](https://biomejs.dev/linter/rules/no-mutable-exports/). It reports exported variables declared with `let` or `var`, which other modules see change whenever they are reassigned.
- ```js
- export let count = 1;
- ```
- - [#13505](https://github.com/biomejs/biome/pull/13505) [`72c3a7e`](https://github.com/biomejs/biome/commit/72c3a7ead53d746e0d3cfc25d81b2e5b610aecdf) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noNegatedComparison`](https://biomejs.dev/linter/rules/no-negated-comparison/), which reports equality comparisons that are negated as a whole and suggests the opposite operator instead.
- ```js
- const isDifferent = !(a === b); // use `a !== b` instead
- ```
- - [#13282](https://github.com/biomejs/biome/pull/13282) [`5201ae5`](https://github.com/biomejs/biome/commit/5201ae561ba112df83a263fb7c17d6fad705353a) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noOuterScopeInIsolatedFunctions`](https://biomejs.dev/linter/rules/no-outer-scope-in-isolated-functions/), which reports uses of variables, `this`, and `super` from outside a function that runs apart from the code around it, such as a function passed to `makeSynchronous()` or marked with an `@isolated` comment.
- ```js
- const url = "https://example.com";
- makeSynchronous(async () => {
- const response = await fetch(url); // `url` doesn't exist where the function runs
- return response.text();
- });
- ```
- - [#13474](https://github.com/biomejs/biome/pull/13474) [`100d4d7`](https://github.com/biomejs/biome/commit/100d4d7fa9f95f701c47e6734b00553e4de0b9c6) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noTailwindLegacyImportant`](https://biomejs.dev/linter/rules/no-tailwind-legacy-important/) for 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.
- ```jsx
- <div className="!flex hover:!bg-red-500" />; // use `flex!` and `hover:bg-red-500!`
- ```
- - [#13224](https://github.com/biomejs/biome/pull/13224) [`19fb503`](https://github.com/biomejs/biome/commit/19fb503d9e6cd75d9987578ef99affb24f4595a1) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noTanstackQueryUnstableDeps`](https://biomejs.dev/linter/rules/no-tanstack-query-unstable-deps/), which reports the object returned by a TanStack Query hook, such as `useQuery` or `useMutation`, when it is used directly as a dependency of `useEffect`, `useMemo`, or `useCallback`. This object can be a new object on every render, so React treats the dependencies as changed on every render.
- ```js
- const mutation = useMutation({ mutationFn });
- const callback = useCallback(() => mutation.mutate("hello"), [mutation]);
- ```
- - [#13371](https://github.com/biomejs/biome/pull/13371) [`adae706`](https://github.com/biomejs/biome/commit/adae706c4e9a3ca0a89bc1c1a3794bfa1cbca721) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noUselessReExportAll`](https://biomejs.dev/linter/rules/no-useless-re-export-all/). It reports `export * from` a module that has no named exports, which exports nothing. The rule belongs to the `project` domain.
- ```js
- // foo.js only has a default export.
- export * from "./foo.js";
- ```
- - [#12560](https://github.com/biomejs/biome/pull/12560) [`1413bf8`](https://github.com/biomejs/biome/commit/1413bf886b75b7559d80622b3591bff13c93fdb7) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noVueComputedPropertyCall`](https://biomejs.dev/linter/rules/no-vue-computed-property-call/), which disallows calling a Vue computed property whose value is not a function. Calling such a value throws an error when the code runs.
- ```vue
- <script>
- export default {
- computed: {
- total() {
- return 42;
- },
- },
- methods: {
- log() {
- console.log(this.total()); // reported
- },
- },
- };
- </script>
- ```
- - [#13322](https://github.com/biomejs/biome/pull/13322) [`025c012`](https://github.com/biomejs/biome/commit/025c012387af813760e09b4926af360a413fd71e) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noVueContentOutsideBlock`](https://biomejs.dev/linter/rules/no-vue-content-outside-block/), 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:
- ```vue
- <template>
- <div>Hello</div>
- </template>
- console.log(1);
- <script>
- export default {};
- </script>
- ```
- - [#13369](https://github.com/biomejs/biome/pull/13369) [`7940a3f`](https://github.com/biomejs/biome/commit/7940a3f090c307f4e67c01ae474e24f3c6b5c2dd) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useConsistentDefaultExportStyle`](https://biomejs.dev/linter/rules/use-consistent-default-export-style/), which enforces whether default-exported functions and classes are declared inside the `export default` statement or declared separately and exported by name.
- ```js
- function foo() {}
- export default foo; // reported
- ```
- - [#13248](https://github.com/biomejs/biome/pull/13248) [`b7a3678`](https://github.com/biomejs/biome/commit/b7a36784d62521c33b9a8121cd69cb9859e72752) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useConsistentExistenceIndexCheck`](https://biomejs.dev/linter/rules/use-consistent-existence-index-check/), which reports checks such as `index < 0`, `index >= 0`, and `index > -1` on the result of `indexOf()`, `lastIndexOf()`, `findIndex()`, or `findLastIndex()`, and suggests comparing with `-1` instead.
- ```js
- const index = list.indexOf(item);
- if (index < 0) {}
- ```
- - [#13305](https://github.com/biomejs/biome/pull/13305) [`4bcb0ee`](https://github.com/biomejs/biome/commit/4bcb0eee15a7e05b61d443e69f043d7936a217be) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useConvexAccessControl`](https://biomejs.dev/linter/rules/use-convex-access-control/), which reports exported Convex queries, mutations and actions whose handler doesn't call an access control function, such as `requireUser(ctx)`. The rule belongs to the `convex` domain.
- ```js
- import { mutation } from "./_generated/server";
- export const send = mutation({
- args: {},
- handler: async (ctx) => {
- await ctx.db.insert("messages", { body: "hello" });
- },
- });
- ```
- - [#13475](https://github.com/biomejs/biome/pull/13475) [`1cb1e56`](https://github.com/biomejs/biome/commit/1cb1e565a8db7befef8dbd2aad4947bfc010f7f8) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useConvexArgsValidator`](https://biomejs.dev/linter/rules/use-convex-args-validator/), which requires Convex queries, mutations, and actions to define an `args` validator, so that Convex checks the arguments of every call before the handler runs.
- ```js
- export const list = query({
- handler: async (ctx) => {
- return await ctx.db.query("tasks").collect();
- },
- });
- ```
- - [#13473](https://github.com/biomejs/biome/pull/13473) [`88aa8a5`](https://github.com/biomejs/biome/commit/88aa8a57b163c91d096c99985da8d1941eac4655) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useConvexExplicitTableIds`](https://biomejs.dev/linter/rules/use-convex-explicit-table-ids/), which reports Convex `db.get()`, `db.patch()`, `db.replace()`, and `db.delete()` calls that don't pass the table name as the first argument.
- ```js
- const message = await ctx.db.get(messageId);
- ```
- - [#13503](https://github.com/biomejs/biome/pull/13503) [`764aba8`](https://github.com/biomejs/biome/commit/764aba8d017cf2f69eac8076d4a24a08c20a5657) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useCustomErrorDefinition`](https://biomejs.dev/linter/rules/use-custom-error-definition/), 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 with `Error`, that don't set their `name` property to the class name, that assign `this.message` instead of passing the message to `super()`, or that don't forward an `options` parameter to a built-in error.
- ```js
- class FooError extends Error {
- constructor(message) {
- super();
- this.message = message;
- }
- }
- ```
- - [#13365](https://github.com/biomejs/biome/pull/13365) [`6bdb1ff`](https://github.com/biomejs/biome/commit/6bdb1ffbf5f9ef5e56730b735268864a77fbe321) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useElseIf`](https://biomejs.dev/linter/rules/use-else-if/). It reports an `if` statement that follows another `if` statement 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 adds `else` before the second `if` statement.
- ```js
- if (status === "loading") {}
- if (status === "error") {}
- ```
- - [#13351](https://github.com/biomejs/biome/pull/13351) [`73a0cb6`](https://github.com/biomejs/biome/commit/73a0cb67b7bc3f4de955199e401a89fcda1da577) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useNegativeIndex`](https://biomejs.dev/linter/rules/use-negative-index/), which reports index arguments of `slice()`, `at()`, `subarray()`, `splice()`, and `toSpliced()` that subtract a number from `.length`, and suggests a negative index instead.
- ```js
- foo.at(foo.length - 1); // reported: write `foo.at(-1)` instead
- ```
- - [#13306](https://github.com/biomejs/biome/pull/13306) [`74c72ae`](https://github.com/biomejs/biome/commit/74c72ae8a60b014d7b8378b1882ff621c014ec6a) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useSetMethods`](https://biomejs.dev/linter/rules/use-set-methods/), which reports code that combines or compares `Set`s by copying them into arrays, and suggests the matching `Set` method, such as `union()`, `intersection()`, `difference()`, `isSubsetOf()`, or `isDisjointFrom()`.
- ```js
- 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](https://github.com/biomejs/biome/pull/13326) [`c3bd8ba`](https://github.com/biomejs/biome/commit/c3bd8ba5d346422d123a31114c39abde086e87ad) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useTanstackQueryQueryOptions`](https://biomejs.dev/linter/rules/use-tanstack-query-query-options/), which reports TanStack Query options that set `queryKey` or `queryFn` where the query is used, and query keys that are written by hand in query client methods. Creating the options once with `queryOptions()` keeps the key and the function of a query together.
- ```js
- 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](https://github.com/biomejs/biome/pull/13431) [`c8e0488`](https://github.com/biomejs/biome/commit/c8e04886875f7cd3e7f1c99ab6079be157d58745) Thanks [@ematipico](https://github.com/ematipico)! - Improved the performance of commands that process files, such as `biome check`, `biome lint` and `biome format` between 14% and 18%.
- - [#13367](https://github.com/biomejs/biome/pull/13367) [`addf04a`](https://github.com/biomejs/biome/commit/addf04a90e9d73b935ab390e64c09d547f271b4e) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13320](https://github.com/biomejs/biome/issues/13320): [`noUnnecessaryConditions`](https://biomejs.dev/linter/rules/no-unnecessary-conditions/) no longer reports loops whose condition is the literal `true`, such as `while (true) {}`, `do {} while (true)`, and `for (; true;) {}`.
- - [#13608](https://github.com/biomejs/biome/pull/13608) [`c1ac8a0`](https://github.com/biomejs/biome/commit/c1ac8a018bf556a2d2f5b6b4a91a541a22b02e59) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#13574](https://github.com/biomejs/biome/issues/13574): the Tailwind CSS rules no longer make Biome scan the whole project. When [`tailwind.stylesheet`](https://biomejs.dev/reference/configuration/#tailwindstylesheet) is 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 by `files.includes`.
- [`useTailwindSortedClasses`](https://biomejs.dev/linter/rules/use-tailwind-sorted-classes/), [`noTailwindRawColors`](https://biomejs.dev/linter/rules/no-tailwind-raw-colors/), [`noTailwindRestrictedClasses`](https://biomejs.dev/linter/rules/no-tailwind-restricted-classes/), and [`noTailwindConflictingClasses`](https://biomejs.dev/linter/rules/no-tailwind-conflicting-classes/) no longer belong to the `project` domain.
- - [#13571](https://github.com/biomejs/biome/pull/13571) [`7ac32bd`](https://github.com/biomejs/biome/commit/7ac32bda5410e3e9e91bc3c50410759633495c12) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13511](https://github.com/biomejs/biome/issues/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](https://github.com/biomejs/biome/pull/13484) [`c12cd1c`](https://github.com/biomejs/biome/commit/c12cd1cc20a62a54225fe3823cdcedf2c9fbdea0) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/) reporting promises that are handled through a method named by a string literal. The following code is no longer reported:
- ```ts
- declare const promise: Promise<number>;
- promise["then"]((value) => value, () => {});
- promise["catch"](() => {});
- ```
- - [#12903](https://github.com/biomejs/biome/pull/12903) [`16aaa88`](https://github.com/biomejs/biome/commit/16aaa88bb3fb45d041f1efd93ebaab26159ff5d8) Thanks [@yeliex](https://github.com/yeliex)! - Added the nursery rule [`useConsistentBooleanProps`](https://biomejs.dev/linter/rules/use-consistent-boolean-props/). When enabled, it requires `<Foo bar={true} />` by default. Set `mode` to `"implicit"` to require the shorthand `<Foo bar />`.
- - [#13540](https://github.com/biomejs/biome/pull/13540) [`f1259d2`](https://github.com/biomejs/biome/commit/f1259d2d50c050a3f0cfaed203ad0d02a895c425) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13538](https://github.com/biomejs/biome/issues/13538): Tailwind classes with an arbitrary value that calls a function whose name starts with `--`, such as `w-[--spacing(80)]` or `text-[--alpha(red/50%)]`, are parsed correctly again. [`useTailwindSortedClasses`](https://biomejs.dev/linter/rules/use-tailwind-sorted-classes/) no longer treats them as unknown classes or moves them to the front.
- - [#13420](https://github.com/biomejs/biome/pull/13420) [`c199c75`](https://github.com/biomejs/biome/commit/c199c75ada835390d18b5c7bfd8e258897e2c81e) Thanks [@ematipico](https://github.com/ematipico)! - Fixed a bug where the Biome Scanner would index the same dependencies in `node_modules` more than once. This would result a slightly faster scanner.
- - [#13468](https://github.com/biomejs/biome/pull/13468) [`a98859c`](https://github.com/biomejs/biome/commit/a98859cfa535c12b4ea46f322eb333e1c36643ad) Thanks [@ematipico](https://github.com/ematipico)! - Improved the performance of formatting JavaScript and TypeScript code.
- - [#12681](https://github.com/biomejs/biome/pull/12681) [`6dbca4c`](https://github.com/biomejs/biome/commit/6dbca4c7347361fbea3bd1f42948097c298c9ebb) Thanks [@NavpreetSSidhu](https://github.com/NavpreetSSidhu)! - Fixed [#12625](https://github.com/biomejs/biome/issues/12625): [`noComponentHookFactories`](https://biomejs.dev/linter/rules/no-component-hook-factories/) no longer reports a capitalised object property inside a function unless its function renders JSX or calls a hook.
- ```ts
- function methods(player) {
- return { Next: () => player.next() };
- }
- ```
- - [#13575](https://github.com/biomejs/biome/pull/13575) [`644c81a`](https://github.com/biomejs/biome/commit/644c81ae1f6a882777482e0278139fe7f6fc17ca) Thanks [@carlosrobert0](https://github.com/carlosrobert0)! - Fixed [#12991](https://github.com/biomejs/biome/issues/12991): the CSS parser no longer panics on a stray `)` in an `@layer` prelude, such as `@layer)` or `@layer a b){}`. It now reports a parse error and recovers.
- - [#12550](https://github.com/biomejs/biome/pull/12550) [`6b63f72`](https://github.com/biomejs/biome/commit/6b63f72a1caedcd632ec19bcd70059c663d1a20c) Thanks [@atharv1205](https://github.com/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.
- ```diff
- return (
- aaaaaaaaaaaaaaaaaaaa &&
- bbbbbbbbbbbbbbbbbbbbbbb &&
- - cccccccccccccccccccc && dddddddddddddddddddddd &&
- + cccccccccccccccccccc &&
- + dddddddddddddddddddddd &&
- eeeeeeeeeeeeeeeeeeeeeeeee
- );
- ```
- - [#13498](https://github.com/biomejs/biome/pull/13498) [`4755be1`](https://github.com/biomejs/biome/commit/4755be12e8a2ba4114a0522e2224371528ef8b77) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13396](https://github.com/biomejs/biome/issues/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.
- ```diff
- - <!-- foo --><!-- foo -->*bar*
- + <!-- foo -->*bar*
- ```
- - [#13497](https://github.com/biomejs/biome/pull/13497) [`8f3c808`](https://github.com/biomejs/biome/commit/8f3c8083c944ff6da2a0a224085583d6a72c2ec7) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13397](https://github.com/biomejs/biome/issues/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.
- ```diff
- > foo
- - bar
- - ===
- + > bar
- + > \===
- ```
- - [#13499](https://github.com/biomejs/biome/pull/13499) [`e2fff80`](https://github.com/biomejs/biome/commit/e2fff808dbdc6d4eec72eac3612ec50dbe5bbe63) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13466](https://github.com/biomejs/biome/issues/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.
- ````diff
- 1. Item:
- ```shell
- echo a
- - echo b
- +
- + echo b
- ```
- ````
- - [#13496](https://github.com/biomejs/biome/pull/13496) [`fb8cede`](https://github.com/biomejs/biome/commit/fb8cede482bdc942733fc460b14fcf6d000da44d) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13408](https://github.com/biomejs/biome/issues/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.
- ````md
- > - ```text
- > hello
- > ```
- ````
- - [#13495](https://github.com/biomejs/biome/pull/13495) [`8a89af1`](https://github.com/biomejs/biome/commit/8a89af19935e2bcfc3eaef4b6deab817cf2a7c56) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13386](https://github.com/biomejs/biome/issues/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.
- ````md
- - > - ```text
- > hello
- > ```
- - > - ```text
- > there
- > ```
- ````
- - [#13289](https://github.com/biomejs/biome/pull/13289) [`b6b42d7`](https://github.com/biomejs/biome/commit/b6b42d78053e133d7f265f87346c4e837f3ebec7) Thanks [@srikar2130](https://github.com/srikar2130)! - Fixed part of [#13165](https://github.com/biomejs/biome/issues/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](https://github.com/biomejs/biome/pull/13528) [`66386c5`](https://github.com/biomejs/biome/commit/66386c5b3b4f708e771ad04cfc48926f20084f6c) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13525](https://github.com/biomejs/biome/issues/13525): [`noProcessGlobal`](https://biomejs.dev/linter/rules/no-process-global/) no longer offers a fix for accesses through the global object, such as `globalThis.process` or `window["process"]`. Adding an import doesn't change what these accesses refer to, so `biome lint --write` no longer loops on them.
- - [#13528](https://github.com/biomejs/biome/pull/13528) [`66386c5`](https://github.com/biomejs/biome/commit/66386c5b3b4f708e771ad04cfc48926f20084f6c) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13527](https://github.com/biomejs/biome/issues/13527): the fix of [`noProcessGlobal`](https://biomejs.dev/linter/rules/no-process-global/) now adds the `process` import at the top level of the module instead of inside a TypeScript namespace.
- - [#13491](https://github.com/biomejs/biome/pull/13491) [`cc402fa`](https://github.com/biomejs/biome/commit/cc402faf81045099f969986f708d2bae1d816d10) Thanks [@2tsoftwareapp](https://github.com/2tsoftwareapp)! - Fixed [#13428](https://github.com/biomejs/biome/issues/13428), where [`noUntrustedLicenses`](https://biomejs.dev/linter/rules/no-untrusted-licenses/) reported valid SPDX license expressions with the `+` ("or later") operator (such as `Apache-2.0+` and `MPL-2.0+`) as untrusted.
- - [#13160](https://github.com/biomejs/biome/pull/13160) [`b56e180`](https://github.com/biomejs/biome/commit/b56e1801db073073e26fe13d540207c90ba33083) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13108](https://github.com/biomejs/biome/issues/13108): [`noUnusedExpressions`](https://biomejs.dev/linter/rules/no-unused-expressions/) no longer reports `satisfies` expressions used as statements, such as `shape satisfies never;` for exhaustiveness checks.
- - [#13514](https://github.com/biomejs/biome/pull/13514) [`aef78f6`](https://github.com/biomejs/biome/commit/aef78f6e1fdf8c4b49f0005f024aa56611557e2b) Thanks [@Yshuro](https://github.com/Yshuro)! - Fixed `node_semver` caret range expansion for `^0.0.0` and `^0.0` so that they match the expected upper bounds (`<0.0.1` and `<0.1.0`, respectively) when resolving `package.json` version ranges.
- - [#13405](https://github.com/biomejs/biome/pull/13405) [`771de3e`](https://github.com/biomejs/biome/commit/771de3e3c23f44ff69c20f4dc97bc1e9e2ed8f1d) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13392](https://github.com/biomejs/biome/issues/13392): [`useNullishCoalescing`](https://biomejs.dev/linter/rules/use-nullish-coalescing/) no longer reports `flag || other` when `flag` is a parameter whose default value removes `undefined` from its type, such as `flag: boolean | undefined = false`.
- - [#13281](https://github.com/biomejs/biome/pull/13281) [`b6c1d06`](https://github.com/biomejs/biome/commit/b6c1d0661a83ef0010f11fab16ed7942c4667db6) Thanks [@GBra-4-669](https://github.com/GBra-4-669)! - Fixed [#13280](https://github.com/biomejs/biome/issues/13280): the suppression parser no longer panics on non-ASCII whitespace.
- - [#12945](https://github.com/biomejs/biome/pull/12945) [`18975d9`](https://github.com/biomejs/biome/commit/18975d97458630ab3973b02a1e70efcfc96d6332) Thanks [@vibbix](https://github.com/vibbix)! - Fixed [`noUnknownTypeSelector`](https://biomejs.dev/linter/rules/no-unknown-type-selector/) reporting `from` and `to` rules directly inside SCSS mixins and `@include` blocks that Sass places inside `@keyframes`:
- ```scss
- @mixin frames {
- from { opacity: 0; }
- to { opacity: 1; }
- }
- @keyframes fade {
- @include frames;
- }
- ```
- - [#13520](https://github.com/biomejs/biome/pull/13520) [`f733558`](https://github.com/biomejs/biome/commit/f733558b82e4d7bdb09d333612357e3ebd7ca7ad) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#11942](https://github.com/biomejs/biome/issues/11942): [`useArrayLiterals`](https://biomejs.dev/linter/rules/use-array-literals/) no longer offers a fix for `Array(...args)`, `Array(x, ...args)`, and other calls whose spread arguments may expand to a single argument. The rule still reports them, but rewriting `Array(...args)` to `[...args]` changes the result when `args` is a single number.
- - [#13522](https://github.com/biomejs/biome/pull/13522) [`41a4f06`](https://github.com/biomejs/biome/commit/41a4f065d1643b9c4371b1a6b83e060a76d79e42) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13331](https://github.com/biomejs/biome/issues/13331): the safe fix of [`useImportType`](https://biomejs.dev/linter/rules/use-import-type/) with the `separatedType` style no longer turns a default import used as a value into `import type`. For example, `import spec, { type A, B } from "./mod"` now keeps `spec` as a value import.
- - [#13559](https://github.com/biomejs/biome/pull/13559) [`dc7e82a`](https://github.com/biomejs/biome/commit/dc7e82ac54f57f0469768d9a43363f209b508b12) Thanks [@MaxWang007](https://github.com/MaxWang007)! - Fixed [#13548](https://github.com/biomejs/biome/issues/13548): the unsafe fix of [`useLiteralKeys`](https://biomejs.dev/linter/rules/use-literal-keys/) now 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](https://github.com/biomejs/biome/pull/13565) [`32ada57`](https://github.com/biomejs/biome/commit/32ada578902142266f56e5250362e32fed1f27c3) Thanks [@diluuuu10](https://github.com/diluuuu10)! - Fixed [#13546](https://github.com/biomejs/biome/issues/13546): Fixed a false positive in `useNamedCaptureGroup` by correctly handling escaped parentheses in RegExp strings.
- - [#13560](https://github.com/biomejs/biome/pull/13560) [`735dddc`](https://github.com/biomejs/biome/commit/735dddccf4b22f7de561a0eb3bede82fb88d47cf) Thanks [@diluuuu10](https://github.com/diluuuu10)! - Fixed [#13547](https://github.com/biomejs/biome/issues/13547): Updated the `useUnifiedTypeSignatures` unsafe fix to wrap function types in parentheses when merging them into a union type, preventing invalid TypeScript syntax.
- - [#13485](https://github.com/biomejs/biome/pull/13485) [`f50b262`](https://github.com/biomejs/biome/commit/f50b26295e4e828c54a1376e4c0dd338a7bde43a) Thanks [@dyc3](https://github.com/dyc3)! - Improved type inference for `Promise`. Biome now knows every static member that the TypeScript standard library declares for it, and the types of the `resolve` and `reject` callbacks passed to a `new Promise()` executor. For example, [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/) now reports the unhandled Promise created by `Promise.withResolvers()`:
- ```ts
- Promise.withResolvers().promise;
- ```
- - [#13506](https://github.com/biomejs/biome/pull/13506) [`87ad81b`](https://github.com/biomejs/biome/commit/87ad81bc6566a3714e3775e28fc480546c2851f9) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13380](https://github.com/biomejs/biome/issues/13380): [`useNumberNamespace`](https://biomejs.dev/linter/rules/use-number-namespace/) no longer offers a fix when `Number` is shadowed by a local binding, because the fix changed the runtime behavior of the code. The rule still reports the global.
- - [#13502](https://github.com/biomejs/biome/pull/13502) [`ee1f211`](https://github.com/biomejs/biome/commit/ee1f2113271fc009b8827c70d75e5bdef23f85c0) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#11938](https://github.com/biomejs/biome/issues/11938): [`noUselessUndefinedInitialization`](https://biomejs.dev/linter/rules/no-useless-undefined-initialization/) no longer offers a fix for `var` declarations. Removing `= undefined` from a `var` declaration inside a loop or from a redeclaration changed the behavior of the program, because `var x;` doesn't reset the variable.
- - [#13501](https://github.com/biomejs/biome/pull/13501) [`b11b273`](https://github.com/biomejs/biome/commit/b11b2731a904e4740ccd24ac6cbda938378785f1) Thanks [@dyc3](https://github.com/dyc3)! - Fixed a false positive in [`useTanstackQueryExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-tanstack-query-exhaustive-dependencies/): 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.
- ```js
- 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](https://github.com/biomejs/biome/pull/13595) [`d15af62`](https://github.com/biomejs/biome/commit/d15af62485bd79eaa32ee7f15f3319ac3eece354) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#10716](https://github.com/biomejs/biome/issues/10716): `biome migrate` now migrates `"recommended": true` to `"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](https://github.com/biomejs/biome/pull/12635) [`2936d85`](https://github.com/biomejs/biome/commit/2936d85d4995e828a05322ca3cd5636e5fae676c) Thanks [@NavpreetSSidhu](https://github.com/NavpreetSSidhu)! - Fixed [#12626](https://github.com/biomejs/biome/issues/12626): [`usePlaywrightValidDescribeCallback`](https://biomejs.dev/linter/rules/use-playwright-valid-describe-callback/) no longer reports calls to a `describe` function declared in the same file.
- - [#13484](https://github.com/biomejs/biome/pull/13484) [`c12cd1c`](https://github.com/biomejs/biome/commit/c12cd1cc20a62a54225fe3823cdcedf2c9fbdea0) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/) and [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/) not recognizing the `PromiseLike` that the methods of a `PromiseLike` value return. For example, `noFloatingPromises` now reports the following code:
- ```ts
- declare const thenable: PromiseLike<number>;
- thenable.then((value) => value);
- ```
- - [#13618](https://github.com/biomejs/biome/pull/13618) [`505a73f`](https://github.com/biomejs/biome/commit/505a73f2545007fa157cf907bad049e94741dfa5) Thanks [@avens19](https://github.com/avens19)! - Fixed [#13588](https://github.com/biomejs/biome/issues/13588): rules that scan the project, such as [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/), are faster in projects with many dependencies. The CLI no longer prepares to watch dependency folders when it doesn't watch the project.
- - [#12865](https://github.com/biomejs/biome/pull/12865) [`7166077`](https://github.com/biomejs/biome/commit/71660779e6520d8d8e6aa5bf58f18830276cfbea) Thanks [@carlosrobert0](https://github.com/carlosrobert0)! - Fixed [#5172](https://github.com/biomejs/biome/issues/5172): the JUnit reporter now includes formatting diagnostics, so `biome check` and `biome format` list the affected files. Test cases are now grouped into one `<testsuite>` per file.
- - [#13270](https://github.com/biomejs/biome/pull/13270) [`2d30ad9`](https://github.com/biomejs/biome/commit/2d30ad92fe94dcb8863757f9cb7a4a7d4f135a1a) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noScssDeprecatedColorFunctions`](https://biomejs.dev/linter/rules/no-scss-deprecated-color-functions/). It reports the deprecated Sass functions that read one channel of a color, such as `red()`, `color.hue()` and `opacity()`, and suggests `color.channel()` instead.
- ```scss
- a {
- opacity: opacity($brand);
- }
- ```
- - [#13218](https://github.com/biomejs/biome/pull/13218) [`840b293`](https://github.com/biomejs/biome/commit/840b29352ba5f1258c365608b0db633a8f19d320) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13088](https://github.com/biomejs/biome/issues/13088): [`useHeadingContent`](https://biomejs.dev/linter/rules/use-heading-content/) now recognizes `set:html` and `set:text` as heading content inside Astro template expressions.
- - [#13567](https://github.com/biomejs/biome/pull/13567) [`6ea6489`](https://github.com/biomejs/biome/commit/6ea64899ada1b620a2ba0e2244b4d22bd833c8bc) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13563](https://github.com/biomejs/biome/issues/13563): Applying the unsafe fix of [`noConsole`](https://biomejs.dev/linter/rules/no-console/) no longer hangs when a `console` call 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.
- ```js
- const result = ok && console.log("x");
- ```
- - [#13483](https://github.com/biomejs/biome/pull/13483) [`e3987d2`](https://github.com/biomejs/biome/commit/e3987d2ad10ed28f77da1074df341f9eb6e8495a) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13421](https://github.com/biomejs/biome/issues/13421): in Astro templates and in projects that depend on `solid-js`, the rules [`useFocusableInteractive`](https://biomejs.dev/linter/rules/use-focusable-interactive/), [`noPositiveTabindex`](https://biomejs.dev/linter/rules/no-positive-tabindex/), [`noNoninteractiveTabindex`](https://biomejs.dev/linter/rules/no-noninteractive-tabindex/), [`useAriaActivedescendantWithTabindex`](https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex/), and [`noAriaHiddenOnFocusable`](https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable/) now recognize the lowercase `tabindex` attribute on JSX elements, and their diagnostics and fixes suggest `tabindex` instead of `tabIndex`.
- The following code is no longer reported in a Solid project or inside an Astro template expression:
- ```jsx
- <div role="button" tabindex={0} onClick={() => {}} />
- ```
- - [#13418](https://github.com/biomejs/biome/pull/13418) [`4de11d2`](https://github.com/biomejs/biome/commit/4de11d24c5618dc1d79ba1236c9dd3568c2228dc) Thanks [@ematipico](https://github.com/ematipico)! - Fixed a bug where Biome couldn't properly parse Svelte `{#each}` blocks when some syntax was used to define the keys.
- - [#13597](https://github.com/biomejs/biome/pull/13597) [`7a56cf9`](https://github.com/biomejs/biome/commit/7a56cf97c24f54b2848da2bdd3d8e3f716ca2c99) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13588](https://github.com/biomejs/biome/issues/13588), a regression where Biome accidentally followed symbolic links inside `node_modules`.
- - [#13521](https://github.com/biomejs/biome/pull/13521) [`3ad6f36`](https://github.com/biomejs/biome/commit/3ad6f36c97cc345a3ea7e048fd63ad6916f2878c) Thanks [@github-actions](https://github.com/apps/github-actions)! - Updated the Baseline data of the [`useBaseline`](https://biomejs.dev/linter/rules/use-baseline/) rule. The rule now reports CSS features according to their latest Baseline status.
- - [#12587](https://github.com/biomejs/biome/pull/12587) [`e97ca39`](https://github.com/biomejs/biome/commit/e97ca39e6916278c4e65ee52c59e4898e0dd2a6a) Thanks [@kristoferma](https://github.com/kristoferma)! - Fixed [#10987](https://github.com/biomejs/biome/issues/10987): [`useErrorCause`](https://biomejs.dev/linter/rules/use-error-cause/) now finds the `cause` in the last argument of a custom error class whose second argument isn't an object, such as `new ErrorWithCode("message", "E_CODE", { cause: err })`. Built-in errors keep their usual options position, which is the third argument for `AggregateError`: `new AggregateError(errors, "message", { cause: err })` is now valid, and `new AggregateError(errors, { cause: err })` is now reported, because that object is the message and the cause is lost.
- - [#13430](https://github.com/biomejs/biome/pull/13430) [`b465622`](https://github.com/biomejs/biome/commit/b4656227455325138a16db283c58ffce567cda19) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noVueRestrictedComponentOptions`](https://biomejs.dev/linter/rules/no-vue-restricted-component-options/), which reports Vue component options that are listed in its `componentOptions` option.
- For example, with `"componentOptions": ["init", ["props", "*", "twoWay"]]`, the following component is reported twice:
- ```vue
- <script>
- export default {
- init() {},
- props: {
- name: { type: String, twoWay: true },
- },
- };
- </script>
- ```
- ## What's Changed
- * fix(type_inference): remove undefined from defaulted parameter types by @dyc3 in https://github.com/biomejs/biome/pull/13405
- * ci: run independent workflow steps in parallel by @Jayllyz in https://github.com/biomejs/biome/pull/13361
- * feat(lint): add useConsistentBooleanProps by @yeliex in https://github.com/biomejs/biome/pull/12903
- * fix(svelte): each block parsing by @ematipico in https://github.com/biomejs/biome/pull/13418
- * refactor: share empty options types to reduce binary size by @siketyan in https://github.com/biomejs/biome/pull/13422
- * refactor: reduce code of Debug impls for AST nodes by @siketyan in https://github.com/biomejs/biome/pull/13423
- * ci: use the RELR format for the relocation table in musl binaries by @siketyan in https://github.com/biomejs/biome/pull/13424
- * fix(lint): accept a trailing options argument in useErrorCause by @kristoferma in https://github.com/biomejs/biome/pull/12587
- * fix(noUnnecessaryConditions): don't flag `while (true)` by @dyc3 in https://github.com/biomejs/biome/pull/13367
- * fix(js_formatter): flatten parenthesized logical operands on the first pass by @atharv1205 in https://github.com/biomejs/biome/pull/12550
- * feat(lint): add useConsistentExistenceIndexCheck by @dyc3 in https://github.com/biomejs/biome/pull/13248
- * feat(lint): add noScssDeprecatedColorFunctions by @dyc3 in https://github.com/biomejs/biome/pull/13270
- * feat(lint): add noTanstackQueryUnstableDeps by @dyc3 in https://github.com/biomejs/biome/pull/13224
- * feat(lint): add noOuterScopeInIsolatedFunctions by @dyc3 in https://github.com/biomejs/biome/pull/13282
- * feat(lint): add noConvexTopOfHourCrons by @dyc3 in https://github.com/biomejs/biome/pull/13300
- * feat(lint): add noBreakInNestedLoop by @dyc3 in https://github.com/biomejs/biome/pull/13358
- * feat(lint): add useTanstackQueryQueryOptions by @dyc3 in https://github.com/biomejs/biome/pull/13326
- * feat(lint): add noVueContentOutsideBlock by @dyc3 in https://github.com/biomejs/biome/pull/13322
- * feat(lint): add noVueComputedPropertyCall by @dyc3 in https://github.com/biomejs/biome/pull/12560
- * perf(core): less memory workspace by @ematipico in https://github.com/biomejs/biome/pull/13469
- * chore: remove warnings by @ematipico in https://github.com/biomejs/biome/pull/13471
- * perf(js/fmt): rewrite of kinds by @ematipico in https://github.com/biomejs/biome/pull/13468
- * chore: lock mimalloc by @ematipico in https://github.com/biomejs/biome/pull/13472
- * perf(cli): process files during traversal and skip redundant ancestor ignore checks by @ematipico in https://github.com/biomejs/biome/pull/13431
- * chore(skills): attempt to get the agents to stop rambling in rule docs by @dyc3 in https://github.com/biomejs/biome/pull/13426
- * refactor(vue): look up model elements and attributes by syntax node by @dyc3 in https://github.com/biomejs/biome/pull/13409
- * refactor(vue): look up model references by syntax node by @dyc3 in https://github.com/biomejs/biome/pull/13410
- * feat(lint): add useConvexAccessControl by @dyc3 in https://github.com/biomejs/biome/pull/13305
- * feat(lint): add useSetMethods by @dyc3 in https://github.com/biomejs/biome/pull/13306
- * feat(lint): add noConvexDuplicateIndexes by @dyc3 in https://github.com/biomejs/biome/pull/13323
- * feat(lint): add noConvexQueryFilter by @dyc3 in https://github.com/biomejs/biome/pull/13324
- * feat(lint): add noConvexProcessEnv by @dyc3 in https://github.com/biomejs/biome/pull/13325
- * feat(lint): add useNegativeIndex by @dyc3 in https://github.com/biomejs/biome/pull/13351
- * feat(lint): add noArrayReduce by @dyc3 in https://github.com/biomejs/biome/pull/13357
- * feat(lint): add useElseIf by @dyc3 in https://github.com/biomejs/biome/pull/13365
- * feat(lint): add noMutableExports by @dyc3 in https://github.com/biomejs/biome/pull/13366
- * feat(lint): add useConsistentDefaultExportStyle by @dyc3 in https://github.com/biomejs/biome/pull/13369
- * feat(lint): add noDuplicateExports and noUselessReExportAll by @dyc3 in https://github.com/biomejs/biome/pull/13371
- * docs(noConvexTopOfHourCrons): tighten the rule's docs a little by @dyc3 in https://github.com/biomejs/biome/pull/13480
- * fix(core): scanner dependencies by @ematipico in https://github.com/biomejs/biome/pull/13420
- * fix(type_inference): remove lowering overrides for Error and disposable types by @dyc3 in https://github.com/biomejs/biome/pull/13484
- * fix(biome_package): support trailing '+' SPDX operator in trust checks by @2tsoftwareapp in https://github.com/biomejs/biome/pull/13491
- * fix(type_inference): remove lowering override for Promise type by @dyc3 in https://github.com/biomejs/biome/pull/13485
- * feat(lint): add noAmd by @dyc3 in https://github.com/biomejs/biome/pull/13387
- * feat(lint): add noDuplicateIfBranches by @dyc3 in https://github.com/biomejs/biome/pull/13395
- * feat(lint): add noTailwindLegacyImportant by @dyc3 in https://github.com/biomejs/biome/pull/13474
- * fix(cli): report formatting diagnostics in the JUnit reporter by @carlosrobert0 in https://github.com/biomejs/biome/pull/12865
- * fix(markdown): end quoted lists at unquoted lines after blank lines by @dyc3 in https://github.com/biomejs/biome/pull/13495
- * fix(markdown): count tab indent after quote markers in fenced code by @dyc3 in https://github.com/biomejs/biome/pull/13496
- * chore: update useBaseline data by @github-actions[bot] in https://github.com/biomejs/biome/pull/13521
- * fix(lint): keep value default imports in useImportType separatedType fix by @dyc3 in https://github.com/biomejs/biome/pull/13522
- * fix(lint): skip a locally declared describe in usePlaywrightValidDescribeCallback by @NavpreetSSidhu in https://github.com/biomejs/biome/pull/12635
- * fix(biome_json_analyze): handle escaped member names in noDuplicateObjectKeys by @Yshuro in https://github.com/biomejs/biome/pull/13512
- * fix(css_formatter): don't double-indent functional pseudo-classes in nested selectors by @srikar2130 in https://github.com/biomejs/biome/pull/13289
- * fix(a11y): recognize lowercase tabindex in Solid projects by @dyc3 in https://github.com/biomejs/biome/pull/13483
- * chore(deps): update rust to v1.100.1 by @renovate[bot] in https://github.com/biomejs/biome/pull/13550
- * chore(deps): update pnpm to v12.23.0 by @renovate[bot] in https://github.com/biomejs/biome/pull/13551
- * chore(deps): update dependency @types/node to v24.19.4 by @renovate[bot] in https://github.com/biomejs/biome/pull/13542
- * chore(deps): update github-actions by @renovate[bot] in https://github.com/biomejs/biome/pull/13543
- * fix(deps): update dependency prettier to v3.10.1 by @renovate[bot] in https://github.com/biomejs/biome/pull/13553
- * fix(deps): update @biomejs packages by @renovate[bot] in https://github.com/biomejs/biome/pull/13552
- * fix(markdown): escape lazy setext-like continuation lines by @dyc3 in https://github.com/biomejs/biome/pull/13497
- * fix(markdown): keep leading comments out of embedded HTML blocks by @dyc3 in https://github.com/biomejs/biome/pull/13498
- * fix(markdown): keep whitespace-only lines in list code blocks by @dyc3 in https://github.com/biomejs/biome/pull/13499
- * chore(deps): update github-actions to v26 by @renovate[bot] in https://github.com/biomejs/biome/pull/13557
- * feat(lint): add noVueRestrictedComponentOptions by @dyc3 in https://github.com/biomejs/biome/pull/13430
- * feat(lint): add useConvexExplicitTableIds by @dyc3 in https://github.com/biomejs/biome/pull/13473
- * feat(lint): add useConvexArgsValidator by @dyc3 in https://github.com/biomejs/biome/pull/13475
- * feat(lint): add noConvexTimeOrRandomInQueries by @dyc3 in https://github.com/biomejs/biome/pull/13476
- * feat(lint): add noConvexCollectInQuery by @dyc3 in https://github.com/biomejs/biome/pull/13477
- * feat(lint): add noConvexOldRegisteredFunctionSyntax by @dyc3 in https://github.com/biomejs/biome/pull/13481
- * feat(lint): add noConvexWrongRuntimeImports by @dyc3 in https://github.com/biomejs/biome/pull/13482
- * fix(lint): parenthesize function types in useUnifiedTypeSignatures fix by @diluuuu10 in https://github.com/biomejs/biome/pull/13560
- * chore: update rule metadata by @dyc3 in https://github.com/biomejs/biome/pull/13541
- * fix(lint/useLiteralKeys): escape quotes in the unsafe fix by @MaxWang007 in https://github.com/biomejs/biome/pull/13559
- * fix(core): index projects inside scanner-ignored directories by @dyc3 in https://github.com/biomejs/biome/pull/13571
- * fix(lint): handle escaped parentheses in RegExp strings in useNamedCaptureGroup by @diluuuu10 in https://github.com/biomejs/biome/pull/13565
- * chore(docs): stop telling agents to make the smallest diff possible by @dyc3 in https://github.com/biomejs/biome/pull/13572
- * fix(lint/css): allow keyframe selectors in SCSS mixins in noUnknownTypeSelector by @vibbix in https://github.com/biomejs/biome/pull/12945
- * fix(lint): only report object properties in noComponentHookFactories when they render JSX by @NavpreetSSidhu in https://github.com/biomejs/biome/pull/12681
- * fix(useTanstackQueryExhaustiveDependencies): ignore the variable that holds the query key by @dyc3 in https://github.com/biomejs/biome/pull/13501
- * fix(useNumberNamespace): skip the fix when `Number` is shadowed by @dyc3 in https://github.com/biomejs/biome/pull/13506
- * fix(lint/noProcessGlobal): skip fix for global object access and add import at module top level by @dyc3 in https://github.com/biomejs/biome/pull/13528
- * fix(lint/noUnusedExpressions): allow satisfies expression statements by @dyc3 in https://github.com/biomejs/biome/pull/13160
- * fix(lint): recognize Astro heading content in template expressions by @dyc3 in https://github.com/biomejs/biome/pull/13218
- * fix(noUselessUndefinedInitialization): don't offer fix for `var` declarations by @dyc3 in https://github.com/biomejs/biome/pull/13502
- * fix(parse/tailwind): parse functions with dashed names by @dyc3 in https://github.com/biomejs/biome/pull/13540
- * perf(biome_json_analyze): use Text keys in noDuplicateObjectKeys by @dyc3 in https://github.com/biomejs/biome/pull/13530
- * feat(lint): add noMixedReturns by @dyc3 in https://github.com/biomejs/biome/pull/13504
- * feat(lint): add useCustomErrorDefinition by @dyc3 in https://github.com/biomejs/biome/pull/13503
- * feat(lint): add noCollectionBracketAccess by @dyc3 in https://github.com/biomejs/biome/pull/13488
- * feat(lint): add noNegatedComparison by @dyc3 in https://github.com/biomejs/biome/pull/13505
- * docs: discourage oversized contributor comments by @ematipico in https://github.com/biomejs/biome/pull/13589
- * test: add doc comment skill evals by @ematipico in https://github.com/biomejs/biome/pull/13590
- * fix(core): skip dependency folders behind symbolic links in the scanner by @dyc3 in https://github.com/biomejs/biome/pull/13597
- * fix(migrate): ignore trivia when migrating `recommended` by @dyc3 in https://github.com/biomejs/biome/pull/13595
- * fix(lint/useArrayLiterals): don't fix calls with spread arguments by @dyc3 in https://github.com/biomejs/biome/pull/13520
- * fix(lint): don't offer an empty fix in `noConsole` by @dyc3 in https://github.com/biomejs/biome/pull/13567
- * fix(suppression): don't panic on non-ASCII whitespace after the category by @GBra-4-669 in https://github.com/biomejs/biome/pull/13281
- * fix(core): perf regression from tailwind stylesheets by @ematipico in https://github.com/biomejs/biome/pull/13608
- * fix(biome_package): correct caret range expansion for ^0.0.0 and ^0.0 by @Yshuro in https://github.com/biomejs/biome/pull/13514
- * ci: authenticate version check and log fetch failures in releases by @dyc3 in https://github.com/biomejs/biome/pull/13623
- * fix(service): don't track dependency folders when not watching by @avens19 in https://github.com/biomejs/biome/pull/13618
- * fix(css_parser): don't panic on `)` in an `@layer` prelude by @carlosrobert0 in https://github.com/biomejs/biome/pull/13575
- * ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/13622
- ## New Contributors
- * @yeliex made their first contribution in https://github.com/biomejs/biome/pull/12903
- * @kristoferma made their first contribution in https://github.com/biomejs/biome/pull/12587
- * @atharv1205 made their first contribution in https://github.com/biomejs/biome/pull/12550
- * @2tsoftwareapp made their first contribution in https://github.com/biomejs/biome/pull/13491
- * @carlosrobert0 made their first contribution in https://github.com/biomejs/biome/pull/12865
- * @NavpreetSSidhu made their first contribution in https://github.com/biomejs/biome/pull/12635
- * @Yshuro made their first contribution in https://github.com/biomejs/biome/pull/13512
- * @srikar2130 made their first contribution in https://github.com/biomejs/biome/pull/13289
- * @diluuuu10 made their first contribution in https://github.com/biomejs/biome/pull/13560
- * @MaxWang007 made their first contribution in https://github.com/biomejs/biome/pull/13559
- * @avens19 made their first contribution in https://github.com/biomejs/biome/pull/13618
- **Full Changelog**: https://github.com/biomejs/biome/compare/@biomejs/biome@2.6.9...@biomejs/biome@2.6.10