Packages

@biomejs/biome

2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed

Your version

2.5.8

11 Aug 2026Where it was published

2.6.9 is the newest release of 2.x.

In short

6 new2 faster10 fixed10 internal

Release note

The section about @biomejs/biome of a note shared by several packages.

Patch Changes

  • Added a new nursery rule useReactCompiler, which reports diagnostics from React Compiler lint mode.

  • Improved performance of noImportCycles.

  • Added the nursery rule noSvelteLegacyConst, which disallows legacy Svelte {@const} tags and recommends declaration tags with $derived().

    Invalid:

    {#each boxes as box}
      {@const area = box.width * box.height}
      <p>{area}</p>
    {/each}

    Valid:

    {#each boxes as box}
      {const area = $derived(box.width * box.height)}
      <p>{area}</p>
    {/each}
  • Fixed #11250: useAwait no longer reports async functions that contain an await using declaration.

  • Fixed #11017: noUselessUndefined no longer reports return undefined when the enclosing function has a return type annotation other than undefined or void.

  • Fixed #11228: CSS block comments between a declaration colon and value now preserve their source indentation.

     :root {
       --font-stack:
    -/* comment */
    +    /* comment */
         system-ui;
     }
  • Fixed #11280: CSS formatting keeps comments inside functional pseudo-classes and pseudo-elements instead of moving them before the function name.

    -:/* comment */ where(div) {}
    +:where(/* comment */ div) {}
  • HTML style attribute values are now parsed as CSS. All Biome CSS lint rules are applied to the style attributes.

  • Fixed Svelte files failing to parse when an expression begins with an object literal.

    Now the following snippet is correctly parsed:

    <p>{{ a: true }}</p>
    <div class={{ active: isActive }}></div>
  • Fixed #10242: JavaScript GritQL patterns with multiple metavariables now match snippets consistently in WebAssembly.

  • Added the nursery rule noInvalidPropertyInitValue, which reports an @property whose initial-value does not match its syntax descriptor. For example, the following declaration triggers the rule because red is not a <length>:

    @property --size {
      syntax: "<length>";
      inherits: false;
      initial-value: red;
    }
  • Improved the diagnostic emitted by noRootType.

  • Fixed #11223: Improved the
    performance of noMisusedPromises
    when analyzing async class methods that call other methods through this.

  • Fixed #10806: noUselessFragments no longer causes Biome to panic when its unsafe fix removes a fragment used as a JSX attribute value.

  • Fixed #11178: noUndeclaredVariables no longer reports Vue's built-in instance properties, such as $slots and $attrs, in template expressions or $event in inline event-handler expressions. The instance properties are still reported inside <script setup>, where they are not defined.

  • Fixed CSS parsing of registered custom properties: Biome now correctly validates the syntax descriptor of @property rules.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.