# noPlaywrightNetworkidle

Rule `biome/noPlaywrightNetworkidle`. Disallow usage of the `networkidle` option.

- Source: biome
- Technologies: Testing
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1921 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noPlaywrightNetworkidle` | no | no | group suspicious, since 2.4.2 | [docs](https://biomejs.dev/linter/rules/no-playwright-networkidle/) |

## Code examples

### Incorrect: the rule reports this

```js
await page.waitForLoadState('networkidle');
```

```js
await page.goto('https://example.com', { waitUntil: 'networkidle' });
```

### Correct: the rule accepts this

```js
await page.waitForLoadState('load');
```

```js
await page.goto('https://example.com');
await page.locator('.content').waitFor();
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noPlaywrightNetworkidle": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noPlaywrightForceOption](https://lintradar.dev/rules/biome/noPlaywrightForceOption.md): Disallow usage of the `{ force: true }` option.
- [biome/noPlaywrightNthMethods](https://lintradar.dev/rules/biome/noPlaywrightNthMethods.md): Disallow selecting Playwright elements by position with `first()`, `last()`, and `nth()`.
- [biome/noPlaywrightEval](https://lintradar.dev/rules/biome/noPlaywrightEval.md): Disallow usage of `page.$eval()` and `page.$$eval()`.
- [biome/noPlaywrightPagePause](https://lintradar.dev/rules/biome/noPlaywrightPagePause.md): Disallow using `page.pause()`.
- [biome/noPlaywrightElementHandle](https://lintradar.dev/rules/biome/noPlaywrightElementHandle.md): Disallow usage of element handles (`page.$()` and `page.$$()`).
- [biome/noPlaywrightUselessAwait](https://lintradar.dev/rules/biome/noPlaywrightUselessAwait.md): Disallow unnecessary `await` for Playwright methods that don't return promises.

---

Web page: https://lintradar.dev/rules/biome/noPlaywrightNetworkidle. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
