--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidClassProperty.js --- # Input ```jsx export default class { X "Y" = 0 #X Initialized = 0 #Initialized = 0 PROPERTY #PROPERTY SpecialProperty #SpecialProperty special_property #special_property Unknown_Style #Unknown_Style Unknown_Init_Style = 0 #Unknown_Init_Style = 0 } ``` # Diagnostics ``` invalidClassProperty.js:2:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 1 │ export default class { > 2 │ X │ ^ 3 │ 4 │ "Y" = 0 i The name could be renamed to `x`. ``` ``` invalidClassProperty.js:4:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 2 │ X 3 │ > 4 │ "Y" = 0 │ ^^^ 5 │ 6 │ #X i The name could be renamed to `y`. ``` ``` invalidClassProperty.js:6:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 4 │ "Y" = 0 5 │ > 6 │ #X │ ^^ 7 │ 8 │ Initialized = 0 i The name could be renamed to `x`. ``` ``` invalidClassProperty.js:8:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 6 │ #X 7 │ > 8 │ Initialized = 0 │ ^^^^^^^^^^^ 9 │ 10 │ #Initialized = 0 i The name could be renamed to `initialized`. ``` ``` invalidClassProperty.js:10:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 8 │ Initialized = 0 9 │ > 10 │ #Initialized = 0 │ ^^^^^^^^^^^^ 11 │ 12 │ PROPERTY i The name could be renamed to `initialized`. ``` ``` invalidClassProperty.js:12:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 10 │ #Initialized = 0 11 │ > 12 │ PROPERTY │ ^^^^^^^^ 13 │ 14 │ #PROPERTY i The name could be renamed to `property`. ``` ``` invalidClassProperty.js:14:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 12 │ PROPERTY 13 │ > 14 │ #PROPERTY │ ^^^^^^^^^ 15 │ 16 │ SpecialProperty i The name could be renamed to `property`. ``` ``` invalidClassProperty.js:16:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 14 │ #PROPERTY 15 │ > 16 │ SpecialProperty │ ^^^^^^^^^^^^^^^ 17 │ 18 │ #SpecialProperty i The name could be renamed to `specialProperty`. ``` ``` invalidClassProperty.js:18:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 16 │ SpecialProperty 17 │ > 18 │ #SpecialProperty │ ^^^^^^^^^^^^^^^^ 19 │ 20 │ special_property i The name could be renamed to `specialProperty`. ``` ``` invalidClassProperty.js:20:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 18 │ #SpecialProperty 19 │ > 20 │ special_property │ ^^^^^^^^^^^^^^^^ 21 │ 22 │ #special_property i The name could be renamed to `specialProperty`. ``` ``` invalidClassProperty.js:22:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 20 │ special_property 21 │ > 22 │ #special_property │ ^^^^^^^^^^^^^^^^^ 23 │ 24 │ Unknown_Style i The name could be renamed to `specialProperty`. ``` ``` invalidClassProperty.js:24:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 22 │ #special_property 23 │ > 24 │ Unknown_Style │ ^^^^^^^^^^^^^ 25 │ 26 │ #Unknown_Style i The name could be renamed to `unknownStyle`. ``` ``` invalidClassProperty.js:26:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 24 │ Unknown_Style 25 │ > 26 │ #Unknown_Style │ ^^^^^^^^^^^^^^ 27 │ 28 │ Unknown_Init_Style = 0 i The name could be renamed to `unknownStyle`. ``` ``` invalidClassProperty.js:28:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 26 │ #Unknown_Style 27 │ > 28 │ Unknown_Init_Style = 0 │ ^^^^^^^^^^^^^^^^^^ 29 │ 30 │ #Unknown_Init_Style = 0 i The name could be renamed to `unknownInitStyle`. ``` ``` invalidClassProperty.js:30:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class property name should be in camelCase. 28 │ Unknown_Init_Style = 0 29 │ > 30 │ #Unknown_Init_Style = 0 │ ^^^^^^^^^^^^^^^^^^^ 31 │ } i The name could be renamed to `unknownInitStyle`. ```