# useRequiredScripts

Rule `biome/useRequiredScripts`. Require configured scripts in `package.json`.

- Source: biome
- Technologies: JSON
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1557 by reach, #61 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/useRequiredScripts` | no | no | group suspicious, since 2.3.9 | [docs](https://biomejs.dev/linter/rules/use-required-scripts/) |

## Code examples

### Incorrect: the rule reports this

```json
{
    "scripts": {
        "test": "vitest"
    }
}
```

### Correct: the rule accepts this

```json
{
    "scripts": {
        "test": "vitest",
        "build": "tsc"
    }
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "useRequiredScripts": "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/useNodeAssertStrict](https://lintradar.dev/rules/biome/useNodeAssertStrict.md): Prefer `node:assert/strict` over `node:assert`.
- [biome/useSimplifiedLogicExpression](https://lintradar.dev/rules/biome/useSimplifiedLogicExpression.md): Discard redundant terms from logical expressions.
- [biome/useLoneExecutableDefinition](https://lintradar.dev/rules/biome/useLoneExecutableDefinition.md): Require one executable GraphQL definition per file.
- [biome/useStaticResponseMethods](https://lintradar.dev/rules/biome/useStaticResponseMethods.md): Use static `Response` methods instead of `new Response()` constructor when possible.
- [biome/useInputName](https://lintradar.dev/rules/biome/useInputName.md): Require mutation arguments to be named `input`.
- [biome/useTailwindSortedClasses](https://lintradar.dev/rules/biome/useTailwindSortedClasses.md): Enforce the sorting of Tailwind CSS classes.

---

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