2.0.0 β€’ Published 6 months ago

@putout/plugin-split-call-with-destructuring v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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

2.0.0

6 months ago

1.0.0

8 months ago