All enum examples in the TypeScript documentation write enum members as PascalCase, like:
enum Direction {
Up = 1,
Down,
Left,
Right,
}
But @typescript-eslint/naming-convention enforces camelCase (and rejects PascalCase), which means I have to write:
enum Direction {
up = 1,
down,
left,
right,
}
Is there a reason why PascalCase should be forbidden for enum members?
The context is a brand new Angular 12 project with the recommended schematics:
ng add @angular-eslint/schematics
This makes no sense to me.
Is my set-up possibly wrong?
Why would the official naming convention be rejected?