github biomejs/biome @biomejs/biome@2.6.10
Biome CLI v2.6.10

one hour ago

2.6.10

Patch Changes

  • #13387 00e98fc Thanks @dyc3! - Added the nursery rule noAmd, which reports AMD define() and require() calls that load modules from a list, so they can be replaced with import statements.

    define(["a", "b"], function (a, b) {});
  • #13357 9407920 Thanks @dyc3! - Added the nursery rule noArrayReduce, 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.

    const counts = words.reduce((counts, word) => {
        counts[word] = (counts[word] ?? 0) + 1;
        return counts;
    }, {});
  • #13358 d82324e Thanks @dyc3! - Added the nursery rule noBreakInNestedLoop, 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.

    for (const item of items) {
      for (const child of item.children) {
        break; // reported
      }
    }
  • #13488 674687a Thanks @dyc3! - Added the nursery rule noCollectionBracketAccess. 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.

    const map = new Map();
    map["foo"] = "bar";
  • #13477 de81ca9 Thanks @dyc3! - Added the nursery rule noConvexCollectInQuery, 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 fae973f Thanks @dyc3! - Added the nursery rule noConvexDuplicateIndexes, 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.

    defineTable({ author: v.string(), channel: v.string() })
    	.index("by_author", ["author"]) // reported
    	.index("by_author_and_channel", ["author", "channel"]);
  • #13481 4de1a09 Thanks @dyc3! - Added the nursery rule noConvexOldRegisteredFunctionSyntax, 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.

    export const list = query(async (ctx) => {
      return await ctx.db.query("messages").collect();
    });
  • #13325 e7dab31 Thanks @dyc3! - Added the new nursery rule noConvexProcessEnv 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.

    // convex/giphy.ts
    const apiKey = process.env.GIPHY_KEY;
  • #13324 6609054 Thanks @dyc3! - Added the nursery rule noConvexQueryFilter, 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.

    const messages = await ctx.db
        .query("messages")
        .filter((q) => q.eq(q.field("author"), args.author))
        .collect();
  • #13476 cfec26a Thanks @dyc3! - Added the nursery rule noConvexTimeOrRandomInQueries, 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 1001924 Thanks @dyc3! - Added the nursery rule noConvexTopOfHourCrons, 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 0466735 Thanks @dyc3! - Added the nursery rule noConvexWrongRuntimeImports, which reports files in a Convex convex folder 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 adae706 Thanks @dyc3! - Added the nursery rule noDuplicateExports. 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.

    export const foo = 1;
    function bar() {}
    export { bar as foo };
  • #13395 3f1f7ce Thanks @dyc3! - Added the nursery rule noDuplicateIfBranches, which reports branches of an if statement that run the same code as the branch right before them.

    if (value === "a") {
      doThing();
    } else if (value === "b") {
      doThing();
    }
  • #13504 ae4791f Thanks @dyc3! - Added the nursery rule noMixedReturns, 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.

    function doSomething(condition) {
        if (condition) {
            return true;
        }
    }
  • #13366 48da9c2 Thanks @dyc3! - Added the nursery rule noMutableExports. It reports exported variables declared with let or var, which other modules see change whenever they are reassigned.

    export let count = 1;
  • #13505 72c3a7e Thanks @dyc3! - Added the nursery rule noNegatedComparison, 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 5201ae5 Thanks @dyc3! - Added the nursery rule noOuterScopeInIsolatedFunctions, 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.

    const url = "https://example.com";
    
    makeSynchronous(async () => {
    	const response = await fetch(url); // `url` doesn't exist where the function runs
    	return response.text();
    });
  • #13474 100d4d7 Thanks @dyc3! - Added the nursery rule noTailwindLegacyImportant 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.

    <div className="!flex hover:!bg-red-500" />; // use `flex!` and `hover:bg-red-500!`
  • #13224 19fb503 Thanks @dyc3! - Added the new nursery rule noTanstackQueryUnstableDeps, 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.

    const mutation = useMutation({ mutationFn });
    const callback = useCallback(() => mutation.mutate("hello"), [mutation]);
  • #13371 adae706 Thanks @dyc3! - Added the nursery rule noUselessReExportAll. It reports export * from a module that has no named exports, which exports nothing. The rule belongs to the project domain.

    // foo.js only has a default export.
    export * from "./foo.js";
  • #12560 1413bf8 Thanks @dyc3! - Added the nursery rule noVueComputedPropertyCall, 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 025c012 Thanks @dyc3! - Added the nursery rule noVueContentOutsideBlock, 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 7940a3f Thanks @dyc3! - Added the nursery rule useConsistentDefaultExportStyle, which enforces whether default-exported functions and classes are declared inside the export default statement or declared separately and exported by name.

    function foo() {}
    export default foo; // reported
  • #13248 b7a3678 Thanks @dyc3! - Added the nursery rule useConsistentExistenceIndexCheck, 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.

    const index = list.indexOf(item);
    if (index < 0) {}
  • #13305 4bcb0ee Thanks @dyc3! - Added the nursery rule useConvexAccessControl, 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.

    import { mutation } from "./_generated/server";
    
    export const send = mutation({
        args: {},
        handler: async (ctx) => {
            await ctx.db.insert("messages", { body: "hello" });
        },
    });
  • #13475 1cb1e56 Thanks @dyc3! - Added the nursery rule useConvexArgsValidator, 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.

    export const list = query({
      handler: async (ctx) => {
        return await ctx.db.query("tasks").collect();
      },
    });
  • #13473 88aa8a5 Thanks @dyc3! - Added the nursery rule useConvexExplicitTableIds, which reports Convex db.get(), db.patch(), db.replace(), and db.delete() calls that don't pass the table name as the first argument.

    const message = await ctx.db.get(messageId);
  • #13503 764aba8 Thanks @dyc3! - Added the nursery rule useCustomErrorDefinition, 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.

    class FooError extends Error {
        constructor(message) {
            super();
            this.message = message;
        }
    }
  • #13365 6bdb1ff Thanks @dyc3! - Added the nursery rule useElseIf. 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.

    if (status === "loading") {}
    if (status === "error") {}
  • #13351 73a0cb6 Thanks @dyc3! - Added the nursery rule useNegativeIndex, which reports index arguments of slice(), at(), subarray(), splice(), and toSpliced() that subtract a number from .length, and suggests a negative index instead.

    foo.at(foo.length - 1); // reported: write `foo.at(-1)` instead
  • #13306 74c72ae Thanks @dyc3! - Added the nursery rule useSetMethods, which reports code that combines or compares Sets by copying them into arrays, and suggests the matching Set method, such as union(), intersection(), difference(), isSubsetOf(), or isDisjointFrom().

    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 c3bd8ba Thanks @dyc3! - Added the nursery rule useTanstackQueryQueryOptions, 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.

    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 c8e0488 Thanks @ematipico! - Improved the performance of commands that process files, such as biome check, biome lint and biome format between 14% and 18%.

  • #13367 addf04a Thanks @dyc3! - Fixed #13320: noUnnecessaryConditions no longer reports loops whose condition is the literal true, such as while (true) {}, do {} while (true), and for (; true;) {}.

  • #13608 c1ac8a0 Thanks @ematipico! - Fixed #13574: the Tailwind CSS rules no longer make Biome scan the whole project. When tailwind.stylesheet 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, noTailwindRawColors, noTailwindRestrictedClasses, and noTailwindConflictingClasses no longer belong to the project domain.

  • #13571 7ac32bd Thanks @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 c12cd1c Thanks @dyc3! - Fixed noFloatingPromises reporting 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 16aaa88 Thanks @yeliex! - Added the nursery rule useConsistentBooleanProps. When enabled, it requires <Foo bar={true} /> by default. Set mode to "implicit" to require the shorthand <Foo bar />.

  • #13540 f1259d2 Thanks @dyc3! - Fixed #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 no longer treats them as unknown classes or moves them to the front.

  • #13420 c199c75 Thanks @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 a98859c Thanks @ematipico! - Improved the performance of formatting JavaScript and TypeScript code.

  • #12681 6dbca4c Thanks @NavpreetSSidhu! - Fixed #12625: noComponentHookFactories no 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 644c81a Thanks @carlosrobert0! - Fixed #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 6b63f72 Thanks @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 4755be1 Thanks @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 8f3c808 Thanks @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.

      > foo
    - bar
    - ===
    + > bar
    + > \===
  • #13499 e2fff80 Thanks @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:
    
         ```shell
          echo a
    -        echo b
    +
    +     echo b
         ```
  • #13496 fb8cede Thanks @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 8a89af1 Thanks @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 b6b42d7 Thanks @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 66386c5 Thanks @dyc3! - Fixed #13525: noProcessGlobal 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 66386c5 Thanks @dyc3! - Fixed #13527: the fix of noProcessGlobal now adds the process import at the top level of the module instead of inside a TypeScript namespace.

  • #13491 cc402fa Thanks @2tsoftwareapp! - Fixed #13428, where noUntrustedLicenses reported valid SPDX license expressions with the + ("or later") operator (such as Apache-2.0+ and MPL-2.0+) as untrusted.

  • #13160 b56e180 Thanks @dyc3! - Fixed #13108: noUnusedExpressions no longer reports satisfies expressions used as statements, such as shape satisfies never; for exhaustiveness checks.

  • #13514 aef78f6 Thanks @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 771de3e Thanks @dyc3! - Fixed #13392: useNullishCoalescing 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 b6c1d06 Thanks @GBra-4-669! - Fixed #13280: the suppression parser no longer panics on non-ASCII whitespace.

  • #12945 18975d9 Thanks @vibbix! - Fixed noUnknownTypeSelector reporting from and to rules directly inside SCSS mixins and @include blocks that Sass places inside @keyframes:

    @mixin frames {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes fade {
      @include frames;
    }
  • #13520 f733558 Thanks @dyc3! - Fixed #11942: useArrayLiterals 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 41a4f06 Thanks @dyc3! - Fixed #13331: the safe fix of useImportType 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 dc7e82a Thanks @MaxWang007! - Fixed #13548: the unsafe fix of useLiteralKeys 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 32ada57 Thanks @diluuuu10! - Fixed #13546: Fixed a false positive in useNamedCaptureGroup by correctly handling escaped parentheses in RegExp strings.

  • #13560 735dddc Thanks @diluuuu10! - Fixed #13547: Updated the useUnifiedTypeSignatures unsafe fix to wrap function types in parentheses when merging them into a union type, preventing invalid TypeScript syntax.

  • #13485 f50b262 Thanks @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 now reports the unhandled Promise created by Promise.withResolvers():

    Promise.withResolvers().promise;
  • #13506 87ad81b Thanks @dyc3! - Fixed #13380: useNumberNamespace 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 ee1f211 Thanks @dyc3! - Fixed #11938: noUselessUndefinedInitialization 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 b11b273 Thanks @dyc3! - Fixed a false positive in useTanstackQueryExhaustiveDependencies: 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 d15af62 Thanks @dyc3! - Fixed #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 2936d85 Thanks @NavpreetSSidhu! - Fixed #12626: usePlaywrightValidDescribeCallback no longer reports calls to a describe function declared in the same file.

  • #13484 c12cd1c Thanks @dyc3! - Fixed noFloatingPromises and noMisusedPromises not recognizing the PromiseLike that the methods of a PromiseLike value return. For example, noFloatingPromises now reports the following code:

    declare const thenable: PromiseLike<number>;
    thenable.then((value) => value);
  • #13618 505a73f Thanks @avens19! - Fixed #13588: rules that scan the project, such as noFloatingPromises, are faster in projects with many dependencies. The CLI no longer prepares to watch dependency folders when it doesn't watch the project.

  • #12865 7166077 Thanks @carlosrobert0! - Fixed #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 2d30ad9 Thanks @dyc3! - Added the new nursery rule noScssDeprecatedColorFunctions. 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.

    a {
      opacity: opacity($brand);
    }
  • #13218 840b293 Thanks @dyc3! - Fixed #13088: useHeadingContent now recognizes set:html and set:text as heading content inside Astro template expressions.

  • #13567 6ea6489 Thanks @dyc3! - Fixed #13563: Applying the unsafe fix of noConsole 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.

    const result = ok && console.log("x");
  • #13483 e3987d2 Thanks @dyc3! - Fixed #13421: in Astro templates and in projects that depend on solid-js, the rules useFocusableInteractive, noPositiveTabindex, noNoninteractiveTabindex, useAriaActivedescendantWithTabindex, and noAriaHiddenOnFocusable 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:

    <div role="button" tabindex={0} onClick={() => {}} />
  • #13418 4de11d2 Thanks @ematipico! - Fixed a bug where Biome couldn't properly parse Svelte {#each} blocks when some syntax was used to define the keys.

  • #13597 7a56cf9 Thanks @dyc3! - Fixed #13588, a regression where Biome accidentally followed symbolic links inside node_modules.

  • #13521 3ad6f36 Thanks @github-actions! - Updated the Baseline data of the useBaseline rule. The rule now reports CSS features according to their latest Baseline status.

  • #12587 e97ca39 Thanks @kristoferma! - Fixed #10987: useErrorCause 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 b465622 Thanks @dyc3! - Added the nursery rule noVueRestrictedComponentOptions, 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:

    <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 #13405
  • ci: run independent workflow steps in parallel by @Jayllyz in #13361
  • feat(lint): add useConsistentBooleanProps by @yeliex in #12903
  • fix(svelte): each block parsing by @ematipico in #13418
  • refactor: share empty options types to reduce binary size by @siketyan in #13422
  • refactor: reduce code of Debug impls for AST nodes by @siketyan in #13423
  • ci: use the RELR format for the relocation table in musl binaries by @siketyan in #13424
  • fix(lint): accept a trailing options argument in useErrorCause by @kristoferma in #12587
  • fix(noUnnecessaryConditions): don't flag while (true) by @dyc3 in #13367
  • fix(js_formatter): flatten parenthesized logical operands on the first pass by @atharv1205 in #12550
  • feat(lint): add useConsistentExistenceIndexCheck by @dyc3 in #13248
  • feat(lint): add noScssDeprecatedColorFunctions by @dyc3 in #13270
  • feat(lint): add noTanstackQueryUnstableDeps by @dyc3 in #13224
  • feat(lint): add noOuterScopeInIsolatedFunctions by @dyc3 in #13282
  • feat(lint): add noConvexTopOfHourCrons by @dyc3 in #13300
  • feat(lint): add noBreakInNestedLoop by @dyc3 in #13358
  • feat(lint): add useTanstackQueryQueryOptions by @dyc3 in #13326
  • feat(lint): add noVueContentOutsideBlock by @dyc3 in #13322
  • feat(lint): add noVueComputedPropertyCall by @dyc3 in #12560
  • perf(core): less memory workspace by @ematipico in #13469
  • chore: remove warnings by @ematipico in #13471
  • perf(js/fmt): rewrite of kinds by @ematipico in #13468
  • chore: lock mimalloc by @ematipico in #13472
  • perf(cli): process files during traversal and skip redundant ancestor ignore checks by @ematipico in #13431
  • chore(skills): attempt to get the agents to stop rambling in rule docs by @dyc3 in #13426
  • refactor(vue): look up model elements and attributes by syntax node by @dyc3 in #13409
  • refactor(vue): look up model references by syntax node by @dyc3 in #13410
  • feat(lint): add useConvexAccessControl by @dyc3 in #13305
  • feat(lint): add useSetMethods by @dyc3 in #13306
  • feat(lint): add noConvexDuplicateIndexes by @dyc3 in #13323
  • feat(lint): add noConvexQueryFilter by @dyc3 in #13324
  • feat(lint): add noConvexProcessEnv by @dyc3 in #13325
  • feat(lint): add useNegativeIndex by @dyc3 in #13351
  • feat(lint): add noArrayReduce by @dyc3 in #13357
  • feat(lint): add useElseIf by @dyc3 in #13365
  • feat(lint): add noMutableExports by @dyc3 in #13366
  • feat(lint): add useConsistentDefaultExportStyle by @dyc3 in #13369
  • feat(lint): add noDuplicateExports and noUselessReExportAll by @dyc3 in #13371
  • docs(noConvexTopOfHourCrons): tighten the rule's docs a little by @dyc3 in #13480
  • fix(core): scanner dependencies by @ematipico in #13420
  • fix(type_inference): remove lowering overrides for Error and disposable types by @dyc3 in #13484
  • fix(biome_package): support trailing '+' SPDX operator in trust checks by @2tsoftwareapp in #13491
  • fix(type_inference): remove lowering override for Promise type by @dyc3 in #13485
  • feat(lint): add noAmd by @dyc3 in #13387
  • feat(lint): add noDuplicateIfBranches by @dyc3 in #13395
  • feat(lint): add noTailwindLegacyImportant by @dyc3 in #13474
  • fix(cli): report formatting diagnostics in the JUnit reporter by @carlosrobert0 in #12865
  • fix(markdown): end quoted lists at unquoted lines after blank lines by @dyc3 in #13495
  • fix(markdown): count tab indent after quote markers in fenced code by @dyc3 in #13496
  • chore: update useBaseline data by @github-actions[bot] in #13521
  • fix(lint): keep value default imports in useImportType separatedType fix by @dyc3 in #13522
  • fix(lint): skip a locally declared describe in usePlaywrightValidDescribeCallback by @NavpreetSSidhu in #12635
  • fix(biome_json_analyze): handle escaped member names in noDuplicateObjectKeys by @Yshuro in #13512
  • fix(css_formatter): don't double-indent functional pseudo-classes in nested selectors by @srikar2130 in #13289
  • fix(a11y): recognize lowercase tabindex in Solid projects by @dyc3 in #13483
  • chore(deps): update rust to v1.100.1 by @renovate[bot] in #13550
  • chore(deps): update pnpm to v12.23.0 by @renovate[bot] in #13551
  • chore(deps): update dependency @types/node to v24.19.4 by @renovate[bot] in #13542
  • chore(deps): update github-actions by @renovate[bot] in #13543
  • fix(deps): update dependency prettier to v3.10.1 by @renovate[bot] in #13553
  • fix(deps): update @biomejs packages by @renovate[bot] in #13552
  • fix(markdown): escape lazy setext-like continuation lines by @dyc3 in #13497
  • fix(markdown): keep leading comments out of embedded HTML blocks by @dyc3 in #13498
  • fix(markdown): keep whitespace-only lines in list code blocks by @dyc3 in #13499
  • chore(deps): update github-actions to v26 by @renovate[bot] in #13557
  • feat(lint): add noVueRestrictedComponentOptions by @dyc3 in #13430
  • feat(lint): add useConvexExplicitTableIds by @dyc3 in #13473
  • feat(lint): add useConvexArgsValidator by @dyc3 in #13475
  • feat(lint): add noConvexTimeOrRandomInQueries by @dyc3 in #13476
  • feat(lint): add noConvexCollectInQuery by @dyc3 in #13477
  • feat(lint): add noConvexOldRegisteredFunctionSyntax by @dyc3 in #13481
  • feat(lint): add noConvexWrongRuntimeImports by @dyc3 in #13482
  • fix(lint): parenthesize function types in useUnifiedTypeSignatures fix by @diluuuu10 in #13560
  • chore: update rule metadata by @dyc3 in #13541
  • fix(lint/useLiteralKeys): escape quotes in the unsafe fix by @MaxWang007 in #13559
  • fix(core): index projects inside scanner-ignored directories by @dyc3 in #13571
  • fix(lint): handle escaped parentheses in RegExp strings in useNamedCaptureGroup by @diluuuu10 in #13565
  • chore(docs): stop telling agents to make the smallest diff possible by @dyc3 in #13572
  • fix(lint/css): allow keyframe selectors in SCSS mixins in noUnknownTypeSelector by @vibbix in #12945
  • fix(lint): only report object properties in noComponentHookFactories when they render JSX by @NavpreetSSidhu in #12681
  • fix(useTanstackQueryExhaustiveDependencies): ignore the variable that holds the query key by @dyc3 in #13501
  • fix(useNumberNamespace): skip the fix when Number is shadowed by @dyc3 in #13506
  • fix(lint/noProcessGlobal): skip fix for global object access and add import at module top level by @dyc3 in #13528
  • fix(lint/noUnusedExpressions): allow satisfies expression statements by @dyc3 in #13160
  • fix(lint): recognize Astro heading content in template expressions by @dyc3 in #13218
  • fix(noUselessUndefinedInitialization): don't offer fix for var declarations by @dyc3 in #13502
  • fix(parse/tailwind): parse functions with dashed names by @dyc3 in #13540
  • perf(biome_json_analyze): use Text keys in noDuplicateObjectKeys by @dyc3 in #13530
  • feat(lint): add noMixedReturns by @dyc3 in #13504
  • feat(lint): add useCustomErrorDefinition by @dyc3 in #13503
  • feat(lint): add noCollectionBracketAccess by @dyc3 in #13488
  • feat(lint): add noNegatedComparison by @dyc3 in #13505
  • docs: discourage oversized contributor comments by @ematipico in #13589
  • test: add doc comment skill evals by @ematipico in #13590
  • fix(core): skip dependency folders behind symbolic links in the scanner by @dyc3 in #13597
  • fix(migrate): ignore trivia when migrating recommended by @dyc3 in #13595
  • fix(lint/useArrayLiterals): don't fix calls with spread arguments by @dyc3 in #13520
  • fix(lint): don't offer an empty fix in noConsole by @dyc3 in #13567
  • fix(suppression): don't panic on non-ASCII whitespace after the category by @GBra-4-669 in #13281
  • fix(core): perf regression from tailwind stylesheets by @ematipico in #13608
  • fix(biome_package): correct caret range expansion for ^0.0.0 and ^0.0 by @Yshuro in #13514
  • ci: authenticate version check and log fetch failures in releases by @dyc3 in #13623
  • fix(service): don't track dependency folders when not watching by @avens19 in #13618
  • fix(css_parser): don't panic on ) in an @layer prelude by @carlosrobert0 in #13575
  • ci: release by @github-actions[bot] in #13622

New Contributors

Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.6.9...@biomejs/biome@2.6.10

Don't miss a new biome release

NewReleases is sending notifications on new releases.