--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidIndexParameter.ts --- # Input ```ts export interface X { [PascalCase: string]: unknown [CONSTANT_CASE: number]: unknown [snake_case: symbol]: unknown } ``` # Diagnostics ``` invalidIndexParameter.ts:2:6 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This index parameter name should be in camelCase. 1 │ export interface X { > 2 │ [PascalCase: string]: unknown │ ^^^^^^^^^^ 3 │ 4 │ [CONSTANT_CASE: number]: unknown i The name could be renamed to `pascalCase`. i Safe fix: Rename this symbol in camelCase. 1 1 │ export interface X { 2 │ - ····[PascalCase:·string]:·unknown 2 │ + ····[pascalCase:·string]:·unknown 3 3 │ 4 4 │ [CONSTANT_CASE: number]: unknown ``` ``` invalidIndexParameter.ts:4:6 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This index parameter name should be in camelCase. 2 │ [PascalCase: string]: unknown 3 │ > 4 │ [CONSTANT_CASE: number]: unknown │ ^^^^^^^^^^^^^ 5 │ 6 │ [snake_case: symbol]: unknown i The name could be renamed to `constantCase`. i Safe fix: Rename this symbol in camelCase. 2 2 │ [PascalCase: string]: unknown 3 3 │ 4 │ - ····[CONSTANT_CASE:·number]:·unknown 4 │ + ····[constantCase:·number]:·unknown 5 5 │ 6 6 │ [snake_case: symbol]: unknown ``` ``` invalidIndexParameter.ts:6:6 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This index parameter name should be in camelCase. 4 │ [CONSTANT_CASE: number]: unknown 5 │ > 6 │ [snake_case: symbol]: unknown │ ^^^^^^^^^^ 7 │ } i The name could be renamed to `snakeCase`. i Safe fix: Rename this symbol in camelCase. 4 4 │ [CONSTANT_CASE: number]: unknown 5 5 │ 6 │ - ····[snake_case:·symbol]:·unknown 6 │ + ····[snakeCase:·symbol]:·unknown 7 7 │ } ```