Skip to content

emptyEnums

Reports empty enum declarations with no members.

✅ This rule is included in the ts logical presets.

An enum with no members serves no purpose. Empty enums cannot be used to represent any values and are typically the result of incomplete implementation or accidental deletion.

AEen53 Status <{}d ivclassNa="meco"><{}d>AEexpo5<3 sp ansty="le--0:#C792EA;--1:#8844">AEen53 Direction <{}d ivclassNa="meco"><{}d>AEcon5<3 sp ansty="le--0:#C792EA;--1:#8844">AEen53 Color <{}d ivclassNa="meco"><{}d>
44AE3F53 Statde61B0Ac3de61B0Inac33<}di vdivclass="Nameexpressive-">44AEex344AE3F53 Directide61B0N3de61B0S3de61B03de61B033<}di vdivclass="Nameexpressive-">44AEc344AE3F53 Colde61B<0Red spans="tyle--0:#D6DEEB;--1:#40">34<4AE= spans="tyle--0:#D6DEEB;--1:#40">30<9821 spans="tyle--0:#D6DEEB;--1:#40">3de61B0G34<4AE= spans="tyle--0:#D6DEEB;--1:#40">30<9822 spans="tyle--0:#D6DEEB;--1:#40">3de61B034<4AE= spans="tyle--0:#D6DEEB;--1:#40">30<9823 spans="tyle--0:#D6DEEB;--1:#40">33<3,>

This rule is not configurable.

If you are in the middle of implementing an enum and prefer to define the structure before adding members, you may want to temporarily disable this rule. Some codebases use empty enums as placeholder types during development.