enum-constants-ordering
added in: 1.8.0
style
Ensures consistent alphabetical order of Enum constants.
Example
❌ Bad:
enum SomeEnum {
second,
first, // LINT
}
✅ Good:
enum SomeEnum {
first,
second,
}
Ensures consistent alphabetical order of Enum constants.
❌ Bad:
enum SomeEnum {
second,
first, // LINT
}
✅ Good:
enum SomeEnum {
first,
second,
}