# noUselessCatchBinding

Rule `biome/noUselessCatchBinding`. Disallow unused error parameters in `catch` clauses.

- 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: #1549 by reach, #53 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/noUselessCatchBinding` | no | unsafe | group complexity, since 2.2.3 | [docs](https://biomejs.dev/linter/rules/no-useless-catch-binding/) |

## Code examples

### Incorrect: the rule reports this

```js
try {
    // Do something
} catch (unused) {}
```

```js
try {
    // Do something
} catch ({ unused }) {}
```

```js
try {
    // Do something
} catch ({ unused1, unused2 }) {}
```

### Correct: the rule accepts this

```js
try {
    // Do something
} catch (used) {
    console.error(used);
}
```

```js
try {
    // Do something
} catch ({ used }) {
    console.error(used);
}
```

```js
try {
    // Do something
} catch ({ used, unused }) {
    console.error(used);
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "noUselessCatchBinding": "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/noUnusedTemplateLiteral](https://lintradar.dev/rules/biome/noUnusedTemplateLiteral.md): Disallow template literals if interpolation and special-character handling are not needed
- [biome/noValueAtRule](https://lintradar.dev/rules/biome/noValueAtRule.md): Disallow the `@value` rule in CSS Modules.
- [biome/noTopLevelLiterals](https://lintradar.dev/rules/biome/noTopLevelLiterals.md): Require the JSON top-level value to be an array or object.
- [biome/useBaseline](https://lintradar.dev/rules/biome/useBaseline.md): Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.
- [biome/noShoutyConstants](https://lintradar.dev/rules/biome/noShoutyConstants.md): Disallow constants whose string value is the same as their uppercase name.
- [biome/useConsistentGraphqlDescriptions](https://lintradar.dev/rules/biome/useConsistentGraphqlDescriptions.md): Require one description style throughout a GraphQL schema.

---

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