1.0.2 ā€¢ Published 2 years ago

@putout/plugin-remove-duplicate-exports v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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