The TypeScript documentation showcases enum examples with PascalCase for enum members, like: this
enum Direction {
Up = 1,
Down,
Left,
Right,
}
However, @typescript-eslint/naming-convention mandates camelCase over PascalCase, resulting in:
enum Direction {
up = 1,
down,
left,
right,
}
Why the prohibition on PascalCase for enum members?
This confusion arises in a new Angular 12 project using the recommended schematics:
ng add @angular-eslint/schematics
This contradiction doesn't add up.
Could my set-up be incorrect?
What's the reasoning behind rejecting the official naming convention?