Reports duplicate class member names that will be overwritten.
✅ This rule is included in the ts javascript presets.
Duplicate class members are legal in JavaScript, but only the last definition is used.
This can lead to confusion and bugs, especially when maintaining the code.
AEcla5<3 sp ansty="le--0:#FFCB8B;--1:#1111">11F3 sp>53< {d ivclassNa="meec-li">nt< sp ansty="le--0:#82AAFF;--1:#3B61">B0b sp>11<()sp ansty="le--0:#D6DEEB;--1:#403F">53 ()sp> {d><{}d ivclassNa="meec-li">nt< sp ansty="le--0:#82AAFF;--1:#3B61">B0b sp>11<()sp ansty="le--0:#D6DEEB;--1:#403F">53 ()sp>{}d><{}d ivclassNa="meec-li">5{}d><3}d ivclassNa="meco"><}d>}d>3}d>AEcla5<3 sp ansty="le--0:#FFCB8B;--1:#1111">11F3 sp>53< {d ivclassNa="meec-li">nt< sp ansty="le--0:#C792EA;--1:#8844">AEg sp>5<3 sp ansty="le--0:#82AAFF;--1:#3B61">B0b3 sp>11<()sp ansty="le--0:#D6DEEB;--1:#403F">53()sp> {d>< {d ivclassNa="meec-li">nt < sp ansty="le--0:#C792EA;--1:#8844">AEretu sp>5<3 sp ansty="le--0:#F78C6C;--1:#AA09">83 sp><21sp ansty="le--0:#D6DEEB;--1:#403F">521sp> {d><3;d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">5 sp>3;d><3}d ivclassNa="meec-li">nt< sp ansty="le--0:#C792EA;--1:#8844">AEg sp>5<3 sp ansty="le--0:#82AAFF;--1:#3B61">B0b3 sp>11<()sp ansty="le--0:#D6DEEB;--1:#403F">53()sp>3}d>< {d ivclassNa="meec-li">nt < sp ansty="le--0:#C792EA;--1:#8844">AEretu sp>5<3 sp ansty="le--0:#F78C6C;--1:#AA09">83 sp><22sp ansty="le--0:#D6DEEB;--1:#403F">522sp> {d><3;d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">5 sp>3;d><3}d ivclassNa="meec-li">53}d><3}d ivclassNa="meco"><}d>}d>3}d>AEcla5<3 sp ansty="le--0:#FFCB8B;--1:#1111">11F3 sp>53< {d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53ba sp>A5<3 sp ansty="le--0:#F78C6C;--1:#AA09">83 sp><21sp ansty="le--0:#D6DEEB;--1:#403F">521sp> {d><3;d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53ba sp>A5<3 sp ansty="le--0:#F78C6C;--1:#AA09">83 sp><22sp ansty="le--0:#D6DEEB;--1:#403F">522sp>3;d><3;d ivclassNa="meec-li">53;d><3}d ivclassNa="meco"><}d>}d>3}d> 44AEc3111<1Foo spans="tyle--0:#D6DEEB;--1:#40">3F1Foo><53 {divclass="Nameec-">de61B<0bar spans="tyle--0:#D9F5DD;--1:#11">110bar><11() spans="tyle--0:#D6DEEB;--1:#40">3F511()>53 ><3 { }divclass="Nameec-">de61B<0baz spans="tyle--0:#D9F5DD;--1:#11">110baz><11() spans="tyle--0:#D6DEEB;--1:#40">3F511()>3 {><3 { }divclass="Nameec-">33 {><{}>{}><}di vdivclass="Nameexpressive-">44AEc3111<1Foo spans="tyle--0:#D6DEEB;--1:#40">3F1Foo><53 {divclass="Nameec-">de44A361B<0bar spans="tyle--0:#D9F5DD;--1:#11">110bar><11() spans="tyle--0:#D6DEEB;--1:#40">3F11()>53 ><53 {divclass="Nameec-">dent< spans="tyle--0:#C792EA;--1:#88">44AEre >30<9821 spans="tyle--0:#D6DEEB;--1:#40">39821>53 >3F<53 spans="tyle--0:#D6DEEB;--1:#40">353 >de44A361B<0bar spans="tyle--0:#D9F5DD;--1:#11">10bar><111( spans="tyle--0:#D7DBE0;--1:#40">3F53v111(>1<111) spans="tyle--0:#D6DEEB;--1:#40">3F5111)><3 { }divclass="Nameec-">33 {><{}>{}>}di><}di vdivclass="Nameexpressive-">44AEc3111<1Foo spans="tyle--0:#D6DEEB;--1:#40">3F1Foo><53 {divclass="Nameec-">de61B<0bar spans="tyle--0:#D9F5DD;--1:#11">110bar><11() spans="tyle--0:#D6DEEB;--1:#40">3F511()>53 ><3 { }divclass="Nameec-">de44AEst361B<0bar spans="tyle--0:#D9F5DD;--1:#11">110bar><11() spans="tyle--0:#D6DEEB;--1:#40">3F511()>3 {><3 { }divclass="Nameec-">33 {><{}>{}>}di>
This rule is not configurable.
This rule should generally always be enabled.
There is no valid use case for duplicate class member names.