# no-param-reassign

Rule `eslint/no-param-reassign`. Disallow reassigning function parameters

- Source: eslint
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 12.2M weekly downloads of presets that enable it
- Trend: +14.1% last quarter
- Rank: #750 by reach, #1413 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `no-param-reassign` | no | no | package `eslint` | [docs](https://eslint.org/docs/latest/rules/no-param-reassign) |
| Oxlint | `no-param-reassign` | no | no | plugin `eslint`, category restriction | [docs](https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-param-reassign.html) |
| Biome | `style/noParameterAssign` | no | no | group style, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-parameter-assign/) |

## Code examples

### Incorrect: the rule reports this

```js
const foo = function(bar) {
    bar = 13;
}

const foo1 = function(bar) {
    bar++;
}

const foo2 = function(bar) {
    for (bar in baz) {}
}

const foo3 = function(bar) {
    for (bar of baz) {}
}
```

### Correct: the rule accepts this

```js
const foo = function(bar) {
    const baz = bar;
}
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
export default [
  {
    rules: {
      "no-param-reassign": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "no-param-reassign": "error"
  }
}
```

### Biome: `biome.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Airbnb base](https://lintradar.dev/presets/airbnb-base.md) | ESLint | `eslint-config-airbnb-base` | 241 | 6.5M | +2.1% |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [eslint-config-love](https://lintradar.dev/presets/love.md) | ESLint | `eslint-config-love` | 258 | 171.7K | +39.3% |
| [Alloy](https://lintradar.dev/presets/alloy.md) | ESLint | `eslint-config-alloy` | 166 | 31.4K | +32.4% |

## Related rules

- [eslint/no-plusplus](https://lintradar.dev/rules/eslint/no-plusplus.md): Disallow the unary operators `++` and `--`
- [eslint/func-names](https://lintradar.dev/rules/eslint/func-names.md): Require or disallow named `function` expressions
- [eslint/prefer-destructuring](https://lintradar.dev/rules/eslint/prefer-destructuring.md): Require destructuring from arrays and/or objects
- [eslint/no-else-return](https://lintradar.dev/rules/eslint/no-else-return.md): Disallow `else` blocks after `return` statements in `if` statements
- [eslint/operator-assignment](https://lintradar.dev/rules/eslint/operator-assignment.md): Require or disallow assignment operator shorthand where possible
- [eslint/no-multi-assign](https://lintradar.dev/rules/eslint/no-multi-assign.md): Disallow use of chained assignment expressions

---

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