# noPlaywrightForceOption

Rule `biome/noPlaywrightForceOption`. Disallow usage of the `{ force: true }` 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: #1920 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
await page.locator('button').click({ force: true });
```

```js
await page.locator('check').check({ force: true });
```

```js
await page.locator('input').fill('text', { force: true });
```

### Correct: the rule accepts this

```js
await page.locator('button').click();
```

```js
await page.locator('check').check();
```

```js
await page.locator('input').fill('text');
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Related rules

- [biome/noPlaywrightEval](https://lintradar.dev/rules/biome/noPlaywrightEval.md): Disallow usage of `page.$eval()` and `page.$$eval()`.
- [biome/noPlaywrightNetworkidle](https://lintradar.dev/rules/biome/noPlaywrightNetworkidle.md): Disallow usage of the `networkidle` option.
- [biome/noPlaywrightElementHandle](https://lintradar.dev/rules/biome/noPlaywrightElementHandle.md): Disallow usage of element handles (`page.$()` and `page.$$()`).
- [biome/noPlaywrightNthMethods](https://lintradar.dev/rules/biome/noPlaywrightNthMethods.md): Disallow selecting Playwright elements by position with `first()`, `last()`, and `nth()`.
- [biome/noObsoleteTags](https://lintradar.dev/rules/biome/noObsoleteTags.md): Disallow obsolete HTML elements.
- [biome/noPlaywrightPagePause](https://lintradar.dev/rules/biome/noPlaywrightPagePause.md): Disallow using `page.pause()`.

---

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