# useNodeAssertStrict

Rule `biome/useNodeAssertStrict`. Prefer `node:assert/strict` over `node:assert`.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1556 by reach, #60 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `style/useNodeAssertStrict` | no | safe | group style, since 1.6.0 | [docs](https://biomejs.dev/linter/rules/use-node-assert-strict/) |

## Code examples

### Incorrect: the rule reports this

```js
import * as assert from "node:assert"
```

### Correct: the rule accepts this

```js
import * as assert from "node:assert/strict"
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "useNodeAssertStrict": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/useLoneExecutableDefinition](https://lintradar.dev/rules/biome/useLoneExecutableDefinition.md): Require one executable GraphQL definition per file.
- [biome/useRequiredScripts](https://lintradar.dev/rules/biome/useRequiredScripts.md): Require configured scripts in `package.json`.
- [biome/useInputName](https://lintradar.dev/rules/biome/useInputName.md): Require mutation arguments to be named `input`.
- [biome/useSimplifiedLogicExpression](https://lintradar.dev/rules/biome/useSimplifiedLogicExpression.md): Discard redundant terms from logical expressions.
- [biome/useGraphqlNamingConvention](https://lintradar.dev/rules/biome/useGraphqlNamingConvention.md): Require uppercase names for GraphQL enum values.
- [biome/useStaticResponseMethods](https://lintradar.dev/rules/biome/useStaticResponseMethods.md): Use static `Response` methods instead of `new Response()` constructor when possible.

---

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