# @putout/plugin-remove-useless-constructor

> 🐊Putout plugin adds ability to remove useless constructor

Latest version **3.0.0** (published 2025-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @putout/plugin-remove-useless-constructor
pnpm add @putout/plugin-remove-useless-constructor
yarn add @putout/plugin-remove-useless-constructor
bun add @putout/plugin-remove-useless-constructor
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2025-05-15 |
| First published | 2021-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 804 |
| Author | coderaiser |
| Maintainers | coderaiser |
| Keywords | putout, putout-plugin, plugin, constructor, useless |

## Links

- npm: https://www.npmjs.com/package/@putout/plugin-remove-useless-constructor
- Repository: https://github.com/coderaiser/putout
- Homepage: https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-constructor#readme
- Issues: https://github.com/coderaiser/putout/issues
- npm.io page: https://npm.io/package/@putout/plugin-remove-useless-constructor

## Recent versions

- 3.0.0 (latest) — 2025-05-15
- 2.0.0 — 2024-09-23
- 1.0.1 — 2024-09-23
- 1.0.0 — 2021-10-03

## README

# @putout/plugin-remove-useless-constructor [![NPM version][NPMIMGURL]][NPMURL]

[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-constructor.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-constructor "npm"

> The `constructor` method is a special method of a class for creating and initializing an object instance of that class.
>
> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/constructor)

🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `constructor`.
Check out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/4f23b20fe29ebaf9c691662846f75c0f/04a5f3c7ea0aba9dd9ed9fe76d957c29c46ef626).

## Install

```
npm i @putout/plugin-remove-useless-constructor
```

## Rule

```json
{
    "rules": {
        "remove-useless-constructor": "on"
    }
}
```

## ❌ Example of incorrect code

```js
class A extends B() {
    constructor(...args) {
        super(...args);
    }
}
```

## ✅ Example of correct code

```js
class A extends B() {}
```

## License

MIT

---
_Source: https://npm.io/package/@putout/plugin-remove-useless-constructor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
