@putout/plugin-remove-duplicate-exports
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
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