Provides consistency when naming enums within TypeScript code.
This rule enforces all TypeScript enums to be singular. An error will occur if the enum is defined with a pluralized name.
Examples of incorrect code for this rule:
enum Pages {
Products,
Orders,
Discounts,
}
Examples of correct code for this rule:
enum Page {
Products,
Orders,
Discounts,
}
If you have established coding standards using a different naming convention for TypeScript enums, you can safely disable this rule.