Skip to content

exportUniqueNames

Reports duplicate export names in a module.

✅ This rule is included in the ts javascript presets.

Having multiple exports with the same name creates ambiguity about which value is exported. This can lead to confusion and runtime errors when consuming the module.

AEexport consB0valAE <= sp ansty="le--0:#F78C6C;--1:#AA09">8<21sp ansty="le--0:#D6DEEB;--1:#403F">5<3;d ivclassNa="meec-li">AEexpo53 { value <};d ivclassNa="meco"><};d>AEconsB<0asp ansty="le--0:#C792EA;--1:#8844">AE <= sp ansty="le--0:#F78C6C;--1:#AA09">8<21sp ansty="le--0:#D6DEEB;--1:#403F">5<3;d ivclassNa="meec-li">AEconsB<0bsp ansty="le--0:#C792EA;--1:#8844">AE <= sp ansty="le--0:#F78C6C;--1:#AA09">8<22sp ansty="le--0:#D6DEEB;--1:#403F">5<3;d ivclassNa="meec-li">AEexpo53 { a <};d ivclassNa="meec-li">AEexpo53 { AE53 a <};d ivclassNa="meco"><};d>
44AEexport co61B0v44A0<9821 spans="tyle--0:#D6DEEB;--1:#40">3<= 1><;di vdivclass="Nameexpressive-">44AEco6<1B0a spans="tyle--0:#C792EA;--1:#88">44A0<9821 spans="tyle--0:#D6DEEB;--1:#40">344AEco6<1B0b spans="tyle--0:#C792EA;--1:#88">44A0<9822 spans="tyle--0:#D6DEEB;--1:#40">344AEex3F53 { a,

This rule is not configurable.

This rule catches actual errors, so you should generally keep it enabled. TypeScript itself will catch many of these cases, but this rule provides earlier feedback.