Have ideas to improve npm?Join in the discussion! »

    @putout/plugin-merge-destructuring-properties

    5.2.0 • Public • Published

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

    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"
        }
    }

    Incorrect code example

    const {one} = require('numbers');
    const {two} = require('numbers');

    Correct code Example

    const {
        one,
        two,
    } = require('numbers');

    License

    MIT

    Install

    npm i @putout/plugin-merge-destructuring-properties

    DownloadsWeekly Downloads

    2,303

    Version

    5.2.0

    License

    MIT

    Unpacked Size

    5.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar