$ npm install @putout/plugin-remove-useless-constructor
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.
npm i @putout/plugin-remove-useless-constructor
{
"rules": {
"remove-useless-constructor": "on"
}
}
class A extends B() {
constructor(...args) {
super(...args);
}
}
class A extends B() {}
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE