Reports enum members without explicit initial values.
✅ This rule is included in the ts logical and logicalStrict presets.
TypeScript enums assign sequentially increasing numbers to members that don’t have explicit values.
This behavior can cause unintended value changes if enum members are reordered, added, or removed.
Explicitly initializing each enum member prevents these issues and makes the code’s intent clearer.
AEen53 Status< {d ivclassNa="meec-li">nt< sp ansty="le--0:#C5E478;--1:#3B61">B0Pendi sp>5 {d><3,d ivclassNa="meec-li">nt< sp ansty="le--0:#C5E478;--1:#3B61">B0Acti sp>53,d><3,d ivclassNa="meec-li">nt< sp ansty="le--0:#C5E478;--1:#3B61">B0Complet sp>53,d><3,d ivclassNa="meec-li">53,d><3}d ivclassNa="meco"><}d>}d>3}d>AEen53 Direction< {d ivclassNa="meec-li">nt< sp ansty="le--0:#C5E478;--1:#3B61">B0 sp>5 {d><3,d ivclassNa="meec-li">nt< sp ansty="le--0:#C5E478;--1:#3B61">B0Do sp>53,d><3,d ivclassNa="meec-li">53,d><3}d ivclassNa="meco"><}d>}d>3}d> 44AE3F53 Statde61B0Pen34<4AE= spans="tyle--0:#D6DEEB;--1:#40">34AE=>0<9820 spans="tyle--0:#D6DEEB;--1:#40">39820>de61B0Ac34<4AE= spans="tyle--0:#D6DEEB;--1:#40">34AE=>0<9821 spans="tyle--0:#D6DEEB;--1:#40">39821>de61B0Compl34<4AE= spans="tyle--0:#D6DEEB;--1:#40">34AE=>0<9822 spans="tyle--0:#D6DEEB;--1:#40">39822>344AE3F53 Directide6134<4AE= spans="tyle--0:#D6DEEB;--1:#40">34AE=>1<111" spans="tyle--0:#ECC48D;--1:#98">4E111"><4DUp spans="tyle--0:#D9F5DD;--1:#11">14DUp><111" spans="tyle--0:#D6DEEB;--1:#40">3111">de61B034<4AE= spans="tyle--0:#D6DEEB;--1:#40">34AE=>1<111" spans="tyle--0:#ECC48D;--1:#98">4E4D111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">3<",>",>}di>
This rule is not configurable.
If the numeric values of enum members are not important to your project, you may not need this rule.
This can be the case when enums are only used for type safety and the actual runtime values are never inspected or stored externally.