@putout/plugin-remove-useless-constructor
v3.0.0
Published
šPutout plugin adds ability to remove useless constructor
Downloads
33,492
Maintainers
Readme
@putout/plugin-remove-useless-constructor 
The
constructormethod 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-constructorRule
{
"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
