@putout/plugin-merge-destructuring-properties
putout plugin adds ability to merge destructuring properties
Last updated 7 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-merge-destructuring-properties 
SYNC missed versions from official npm registry.

@putout/plugin-merge-destructuring-properties NPM version

The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.

(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

Current Tags

  • 12.3.1                                ...           latest (a year ago)

30 Versions

  • 12.3.1                                ...           a year ago
  • 12.3.0                                ...           a year ago
  • 12.2.0                                ...           a year ago
  • 12.1.2                                ...           a year ago
  • 12.1.1                                ...           a year ago
  • 12.1.0                                ...           a year ago
  • 12.0.0                                ...           a year ago
  • 11.0.0                                ...           2 years ago
  • 10.0.0                                ...           2 years ago
  • 9.0.0                                ...           2 years ago
  • 8.0.0                                ...           3 years ago
  • 7.0.0                                ...           4 years ago
  • 6.2.1                                ...           4 years ago
  • 6.2.0                                ...           4 years ago
  • 6.1.0                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 5.2.1                                ...           5 years ago
  • 5.2.0                                ...           6 years ago
  • 5.1.0                                ...           6 years ago
  • 5.0.1                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 49
Today 0
This Week 1
This Month 37
Last Day 0
Last Week 0
Last Month 12
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE