@putout/plugin-remove-duplicate-exports

1.0.2 • Public • Published

@putout/plugin-remove-duplicate-exports NPM version

The export statement is used when creating JavaScript modules to export live bindings to functions, objects, or primitive values from the module so they can be used by other programs with the import statement.

(c) MDN

🐊Putout plugin adds ability to find and remove duplecate exports. Merged to @putout/plugin-typescript.

Install

npm i @putout/plugin-remove-duplicate-exports

Rule

{
    "rules": {
        "remove-duplicate-exports": "on"
    }
}

Example of incorrect code

export {
    a,
    hello,
    a,
    world,
};

Example of correct code

export {
    hello,
    a,
    world,
};

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @putout/plugin-remove-duplicate-exports

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.43 kB

Total Files

4

Last publish

Collaborators

  • coderaiser