According to the style guide, enums should always be laid out vertically.
Write enums with each item on its own line. This allows adding documentation comments above each item more easily, and also makes for cleaner diffs in version control when items are added or removed.
enum Element {
EARTH,
WATER,
AIR,
FIRE,
}
According to the style guide, enums should always be laid out vertically.