@putout/plugin-remove-useless-constructor
🐊Putout plugin adds ability to remove useless constructor
Last updated 3 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-useless-constructor 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-constructor NPM version

The constructor method is a special method of a class for creating and initializing an object instance of that class.

(c) MDN

🐊Putout plugin adds ability to remove useless constructor. Check out in 🐊Putout Editor.

Install

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

Rule

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

❌ Example of incorrect code

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

✅ Example of correct code

class A extends B() {}

License

MIT

Current Tags

  • 2.0.0                                ...           latest (3 months ago)

3 Versions

  • 2.0.0                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE