Packages

@biomejs/biome

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

Your version

2.4.2

16 Feb 2026Where it was published

2.6.9 is the newest release of 2.x.

In short

13 new4 fixed

Release note

Patch Changes

  • Fixed #9098: useImportType no longer incorrectly flags imports used in Svelte control flow blocks ({#if}, {#each}, {#await}, {#key}) as type-only imports.

  • Updated rule source metadata for rules from html-eslint.

  • Added the nursery rule noConditionalExpect. This rule disallows conditional expect() calls inside tests, which can lead to tests that silently pass when assertions never run.

    // Invalid - conditional expect may not run
    test("conditional", async ({ page }) => {
      if (someCondition) {
        await expect(page).toHaveTitle("Title");
      }
    });
    
    // Valid - unconditional expect
    test("unconditional", async ({ page }) => {
      await expect(page).toHaveTitle("Title");
    });
  • Added the nursery rule noPlaywrightElementHandle. Prefers locators to element handles.

    const el = await page.$(".btn");
  • Added the nursery rule noPlaywrightEval. Disallows page.$eval() and page.$$eval() methods.

    await page.$eval(".btn", (el) => el.textContent);
  • Added the nursery rule noPlaywrightForceOption. Disallows the force option on user interactions.

    await locator.click({ force: true });
  • Added the nursery rule noPlaywrightMissingAwait. Enforces awaiting async Playwright APIs.

    const el = page.locator(".btn");
    el.click(); // Missing await
  • Added the nursery rule noPlaywrightNetworkidle. Disallows deprecated networkidle wait option.

    await page.goto(url, { waitUntil: "networkidle" });
  • Added the nursery rule noPlaywrightPagePause. Disallows page.pause() debugging calls in committed code.

    await page.pause();
  • Added the nursery rule noPlaywrightUselessAwait. Disallows unnecessary await on synchronous Playwright methods.

    // Incorrect - locator() is synchronous
    const loc = await page.locator(".btn");
  • Added the nursery rule noPlaywrightWaitForNavigation. Prefers modern navigation APIs over deprecated waitForNavigation().

    await page.waitForNavigation();
  • Added the nursery rule noPlaywrightWaitForSelector. Prefers locators over deprecated waitForSelector().

    await page.waitForSelector(".btn");
  • Added the nursery rule noPlaywrightWaitForTimeout. Disallows hard-coded timeouts with waitForTimeout().

    await page.waitForTimeout(5000);
  • Enhanced noSkippedTests to detect Playwright patterns (.fixme, test.describe, test.step, bracket notation, bare calls). Consolidated noPlaywrightSkippedTest into this rule.

  • Fixed #9080: The noUnusedVariables rule no longer reports a top-level Props interface or type alias as unused in Astro files.

  • Added the nursery rule useExpect. This rule ensures that test functions contain at least one expect() assertion.

    // Invalid - test without assertion
    test("no assertion", async ({ page }) => {
      await page.goto("/");
    });
    
    // Valid - test with assertion
    test("has assertion", async ({ page }) => {
      await expect(page).toHaveTitle("Title");
    });
  • Added the nursery rule usePlaywrightValidDescribeCallback. Validates that describe callback signatures are not async.

    test.describe("suite", async () => {});

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.