# noUnusedFunctionParameters

Rule `biome/noUnusedFunctionParameters`. Disallow unused function parameters.

- Source: biome
- Technologies: JavaScript
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #574 by reach, #209 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noUnusedFunctionParameters` | yes | unsafe | group correctness, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-unused-function-parameters/) |

## Code examples

### Incorrect: the rule reports this

```js
function foo(myVar) {
    console.log('foo');
}
```

```js
new Promise((accept, reject) => {
    window.setTimeout(accept, 1000);
});
```

```js
const squares = [[1, 1], [2, 4], [3, 9], [4, 16]];
squares.filter(([k, v]) => v > 5);
```

### Correct: the rule accepts this

```js
function foo(myVar) {
    console.log(myVar);
}
```

```js
function foo(_myVar) {}
```

```js
function withObjectSpread({ a, ...rest }) {
      return rest;
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noUnusedFunctionParameters": "error"
      }
    }
  }
}
```

## Presets that enable it

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

## Related rules

- [biome/noUnsafeIframeSandbox](https://lintradar.dev/rules/biome/noUnsafeIframeSandbox.md): Disallow an unsafe combination of the `sandbox` attribute.
- [biome/noUnusedImports](https://lintradar.dev/rules/biome/noUnusedImports.md): Disallow unused imports.
- [biome/noUnmatchableAnbSelector](https://lintradar.dev/rules/biome/noUnmatchableAnbSelector.md): Disallow `An+B` formulas that cannot select an element.
- [biome/noUselessContinue](https://lintradar.dev/rules/biome/noUselessContinue.md): Avoid using unnecessary `continue`.
- [biome/noUnknownUnit](https://lintradar.dev/rules/biome/noUnknownUnit.md): Disallow unrecognized CSS units.
- [biome/noUselessEscapeInString](https://lintradar.dev/rules/biome/noUselessEscapeInString.md): Disallow unnecessary escapes in string literals.

---

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