10.0.0 β’ Published 8 months ago
@putout/plugin-merge-destructuring-properties v10.0.0
@putout/plugin-merge-destructuring-properties 
The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from
arrays
, orproperties
fromobjects
, into distinctvariables
.(c) MDN
πPutout plugin adds ability to merge destructuring properties.
Install
npm i @putout/plugin-merge-destructuring-properties
Rule
Rule merge-destructuring-properties
is enabled by default, to disable add to .putout.json
:
{
"rules": {
"merge-destructuring-properties": "off"
}
}
β Example of incorrect code
const {one} = require('numbers');
const {two} = require('numbers');
β Example of correct code
const {one, two} = require('numbers');
License
MIT
10.0.0
8 months ago
9.0.0
12 months ago
8.0.0
2 years ago
7.0.0
2 years ago
6.2.1
3 years ago
6.2.0
3 years ago
6.1.0
3 years ago
6.0.0
3 years ago
5.2.1
4 years ago
5.2.0
4 years ago
5.1.0
4 years ago
5.0.1
4 years ago
5.0.0
5 years ago
4.0.0
5 years ago
3.1.0
5 years ago
3.0.0
5 years ago
2.0.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago