8.0.0 β’ Published 11 months ago
@putout/plugin-merge-destructuring-properties v8.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
8.0.0
11 months ago
7.0.0
1 year ago
6.2.1
2 years ago
6.2.0
2 years ago
6.1.0
2 years ago
6.0.0
2 years ago
5.2.1
3 years ago
5.2.0
3 years ago
5.1.0
3 years ago
5.0.1
3 years ago
5.0.0
4 years ago
4.0.0
4 years ago
3.1.0
4 years ago
3.0.0
4 years ago
2.0.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago