@biomejs/biome
2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed
2.6.9 is the newest release of 2.x.
In short
13 new4 fixed
Release note
Patch Changes
Fixed #9098:
useImportTypeno 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 conditionalexpect()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. Disallowspage.$eval()andpage.$$eval()methods.await page.$eval(".btn", (el) => el.textContent);Added the nursery rule
noPlaywrightForceOption. Disallows theforceoption 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 awaitAdded the nursery rule
noPlaywrightNetworkidle. Disallows deprecatednetworkidlewait option.await page.goto(url, { waitUntil: "networkidle" });Added the nursery rule
noPlaywrightPagePause. Disallowspage.pause()debugging calls in committed code.await page.pause();
Added the nursery rule
noPlaywrightUselessAwait. Disallows unnecessaryawaiton synchronous Playwright methods.// Incorrect - locator() is synchronous const loc = await page.locator(".btn");Added the nursery rule
noPlaywrightWaitForNavigation. Prefers modern navigation APIs over deprecatedwaitForNavigation().await page.waitForNavigation();
Added the nursery rule
noPlaywrightWaitForSelector. Prefers locators over deprecatedwaitForSelector().await page.waitForSelector(".btn");Added the nursery rule
noPlaywrightWaitForTimeout. Disallows hard-coded timeouts withwaitForTimeout().await page.waitForTimeout(5000);
Enhanced
noSkippedTeststo detect Playwright patterns (.fixme,test.describe,test.step, bracket notation, bare calls). ConsolidatednoPlaywrightSkippedTestinto this rule.Fixed
#9080: ThenoUnusedVariablesrule no longer reports a top-levelPropsinterface or type alias as unused in Astro files.Added the nursery rule
useExpect. This rule ensures that test functions contain at least oneexpect()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.