@putout/plugin-remove-useless-constructor
v2.0.0
Published
šPutout plugin adds ability to remove useless constructor
Downloads
28,739
Maintainers
Readme
@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.
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