Détail du package

@putout/plugin-split-call-with-destructuring

coderaiser11kMIT2.0.0

🐊Putout plugin adds ability to find and 'split-call-with-destructuring' statement

putout, putout-plugin, plugin, split

readme

@putout/plugin-split-call-with-destructuring NPM version

🐊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