--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidEnumMember.ts --- # Input ```ts export enum Status { OPEN, CLOSE, } export enum Direction { right, left, } ``` # Diagnostics ``` invalidEnumMember.ts:2:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This enum member name should be in PascalCase. 1 │ export enum Status { > 2 │ OPEN, │ ^^^^ 3 │ CLOSE, 4 │ } i The name could be renamed to `Open`. ``` ``` invalidEnumMember.ts:3:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This enum member name should be in PascalCase. 1 │ export enum Status { 2 │ OPEN, > 3 │ CLOSE, │ ^^^^^ 4 │ } 5 │ i The name could be renamed to `Close`. ``` ``` invalidEnumMember.ts:7:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This enum member name should be in PascalCase. 6 │ export enum Direction { > 7 │ right, │ ^^^^^ 8 │ left, 9 │ } i The name could be renamed to `Right`. ``` ``` invalidEnumMember.ts:8:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This enum member name should be in PascalCase. 6 │ export enum Direction { 7 │ right, > 8 │ left, │ ^^^^ 9 │ } i The name could be renamed to `Left`. ```