TypeScript allows multiple enum members to have the same value.
However, this is usually unintentional and can lead to bugs that are hard to track down.
When enum members have duplicate values:
Accessing the enum by value will return only one of the duplicate members
The enum’s reverse mapping becomes unreliable
Code that relies on unique values may behave unexpectedly
This rule reports when enum members are initialized with literal values (strings or numbers) that have already been used by another member.
It can sometimes be useful to include duplicate enum members for specific use cases, such as when renaming an enum member and keeping the old name as an alias until a breaking change.
You might consider using ESLint disable comments for those specific situations instead of completely disabling this rule.