# no-unnecessary-parameter-property-assignment

Rule `typescript/no-unnecessary-parameter-property-assignment`. Disallow unnecessary assignment of constructor property parameter

- Source: typescript
- Technologies: TypeScript
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 53.5M weekly downloads of presets that enable it
- Trend: +177.1% last quarter
- Rank: #240 by reach, #3 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `@typescript-eslint/no-unnecessary-parameter-property-assignment` | no | no | package `@typescript-eslint/eslint-plugin` | [docs](https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment) |
| Oxlint | `typescript/no-unnecessary-parameter-property-assignment` | yes | safe | plugin `typescript`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-parameter-property-assignment.html) |
| Biome | `nursery/noUselessParameterPropertyAssignment` | no | no | group nursery, since 2.6.7 | [docs](https://biomejs.dev/linter/rules/no-useless-parameter-property-assignment/) |

## Code examples

### Incorrect: the rule reports this

```ts
class Foo {
  constructor(public bar: string) {
    this.bar = bar;
  }
}
```

### Correct: the rule accepts this

```ts
class Foo {
  constructor(public bar: string) {}
}
```

Examples from the ESLint documentation.

## Enable it

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

```js
import tseslint from "typescript-eslint";

export default [
  {
    plugins: { "@typescript-eslint": tseslint.plugin },
    rules: {
      "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "typescript/no-unnecessary-parameter-property-assignment": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noUselessParameterPropertyAssignment": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Oxlint default](https://lintradar.dev/presets/oxlint-default.md) | Oxlint | `oxlint` | 111 | 50.8M | +183.6% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |
| [eslint-config-love](https://lintradar.dev/presets/love.md) | ESLint | `eslint-config-love` | 258 | 171.7K | +39.3% |

## Related rules

- [typescript/require-array-sort-compare](https://lintradar.dev/rules/typescript/require-array-sort-compare.md): Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`
- [typescript/no-useless-constructor](https://lintradar.dev/rules/typescript/no-useless-constructor.md): Disallow unnecessary constructors
- [typescript/consistent-type-assertions](https://lintradar.dev/rules/typescript/consistent-type-assertions.md): Enforce consistent usage of type assertions
- [typescript/no-non-null-assertion](https://lintradar.dev/rules/typescript/no-non-null-assertion.md): Disallow non-null assertions using the `!` postfix operator
- [typescript/no-unnecessary-type-assertion](https://lintradar.dev/rules/typescript/no-unnecessary-type-assertion.md): Disallow type assertions that do not change the type of an expression
- [typescript/no-misused-promises](https://lintradar.dev/rules/typescript/no-misused-promises.md): Disallow Promises in places not designed to handle them

---

Web page: https://lintradar.dev/rules/typescript/no-unnecessary-parameter-property-assignment. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
