@putout/plugin-simplify-assignment
v3.1.0
Published
šPutout plugin adds ability to simplify assignment
Downloads
34,507
Maintainers
Readme
@putout/plugin-simplify-assignment 
šPutout plugin adds ability to simplify assignment
.
Install
npm i @putout/plugin-simplify-assignment -D
Rule
{
"rules": {
"simplify-assignment": "on"
}
}
ā Example of incorrect code
const {a} = {
a: 5,
};
const [b] = [5];
const c = (() => 7)();
ā Example of correct code
const a = 5;
const b = 5;
const c = 7;
License
MIT