--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidNamespace.ts --- # Input ```ts export namespace XXX {} export namespace CONSTANT_CASE {} export namespace snake_case {} export namespace Unknown_Style {} namespace _XXX {} namespace _CONSTANT_CASE {} namespace _snake_case {} namespace _Unknown_Style {} ``` # Diagnostics ``` invalidNamespace.ts:1:18 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name should be in camelCase or PascalCase. > 1 │ export namespace XXX {} │ ^^^ 2 │ 3 │ export namespace CONSTANT_CASE {} i The name could be renamed to `xxx`. ``` ``` invalidNamespace.ts:3:18 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name should be in camelCase or PascalCase. 1 │ export namespace XXX {} 2 │ > 3 │ export namespace CONSTANT_CASE {} │ ^^^^^^^^^^^^^ 4 │ 5 │ export namespace snake_case {} i The name could be renamed to `constantCase`. ``` ``` invalidNamespace.ts:5:18 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name should be in camelCase or PascalCase. 3 │ export namespace CONSTANT_CASE {} 4 │ > 5 │ export namespace snake_case {} │ ^^^^^^^^^^ 6 │ 7 │ export namespace Unknown_Style {} i The name could be renamed to `snakeCase`. ``` ``` invalidNamespace.ts:7:18 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name should be in camelCase or PascalCase. 5 │ export namespace snake_case {} 6 │ > 7 │ export namespace Unknown_Style {} │ ^^^^^^^^^^^^^ 8 │ 9 │ namespace _XXX {} i The name could be renamed to `unknownStyle`. ``` ``` invalidNamespace.ts:9:11 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name trimmed as `XXX` should be in camelCase or PascalCase. 7 │ export namespace Unknown_Style {} 8 │ > 9 │ namespace _XXX {} │ ^^^^ 10 │ 11 │ namespace _CONSTANT_CASE {} i The name could be renamed to `_xxx`. i Safe fix: Rename this symbol in camelCase. 7 7 │ export namespace Unknown_Style {} 8 8 │ 9 │ - namespace·_XXX·{} 9 │ + namespace·_xxx·{} 10 10 │ 11 11 │ namespace _CONSTANT_CASE {} ``` ``` invalidNamespace.ts:11:11 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name trimmed as `CONSTANT_CASE` should be in camelCase or PascalCase. 9 │ namespace _XXX {} 10 │ > 11 │ namespace _CONSTANT_CASE {} │ ^^^^^^^^^^^^^^ 12 │ 13 │ namespace _snake_case {} i The name could be renamed to `_constantCase`. i Safe fix: Rename this symbol in camelCase. 9 9 │ namespace _XXX {} 10 10 │ 11 │ - namespace·_CONSTANT_CASE·{} 11 │ + namespace·_constantCase·{} 12 12 │ 13 13 │ namespace _snake_case {} ``` ``` invalidNamespace.ts:13:11 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name trimmed as `snake_case` should be in camelCase or PascalCase. 11 │ namespace _CONSTANT_CASE {} 12 │ > 13 │ namespace _snake_case {} │ ^^^^^^^^^^^ 14 │ 15 │ namespace _Unknown_Style {} i The name could be renamed to `_snakeCase`. i Safe fix: Rename this symbol in camelCase. 11 11 │ namespace _CONSTANT_CASE {} 12 12 │ 13 │ - namespace·_snake_case·{} 13 │ + namespace·_snakeCase·{} 14 14 │ 15 15 │ namespace _Unknown_Style {} ``` ``` invalidNamespace.ts:15:11 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This namespace name trimmed as `Unknown_Style` should be in camelCase or PascalCase. 13 │ namespace _snake_case {} 14 │ > 15 │ namespace _Unknown_Style {} │ ^^^^^^^^^^^^^^ i The name could be renamed to `_unknownStyle`. i Safe fix: Rename this symbol in camelCase. 13 13 │ namespace _snake_case {} 14 14 │ 15 │ - namespace·_Unknown_Style·{} 15 │ + namespace·_unknownStyle·{} ```