@putout/plugin-split-call-with-destructuring 
🐊Putout plugin adds ability to split call
with destructuring
.
Checkout in 🐊Putout Editor.
Install
npm i @putout/plugin-split-call-with-destructuring
Rule
{
"rules": {
"split-call-with-destructuring": "on"
}
}
❌ Example of incorrect code
console.log('hello')({uid} = path.scope);
console.log('hello')[uid] = path.scope;
✅ Example of correct code
console.log('hello');
({uid} = path.scope);
console.log('hello');
[uid] = path.scope;
License
MIT