Provides consistency when naming Enums within TypeScript code.
This rule enforces all TypeScript enums to be in pascal case. An error will occur if another capitalization rule is used (such as snake case or lowercase) when naming TypeScript Enums.
Examples of incorrect code for this rule:
enum sortorder {
most_recent,
LEAST_RECENT,
newest,
OLDEST
}
Examples of correct code for this rule:
enum SortOrder {
MostRecent,
LeastRecent,
Newest,
Oldest
}
If you have established coding standards using a different naming convention for TypeScript Enums, you can safely disable this rule.