--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidClassSetter.js --- # Input ```jsx export default class { set X(x) {} set PROPERTY(x) {} set SpecialProperty(x) {} set special_property(x) {} set Unknown_Style(x) {} set #X(x) {} set #PROPERTY(x) {} set #SpecialProperty(x) {} set #special_property(x) {} set #Unknown_Style(x) {} } ``` # Diagnostics ``` invalidClassSetter.js:2:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 1 │ export default class { > 2 │ set X(x) {} │ ^ 3 │ 4 │ set PROPERTY(x) {} i The name could be renamed to `x`. ``` ``` invalidClassSetter.js:4:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 2 │ set X(x) {} 3 │ > 4 │ set PROPERTY(x) {} │ ^^^^^^^^ 5 │ 6 │ set SpecialProperty(x) {} i The name could be renamed to `property`. ``` ``` invalidClassSetter.js:6:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 4 │ set PROPERTY(x) {} 5 │ > 6 │ set SpecialProperty(x) {} │ ^^^^^^^^^^^^^^^ 7 │ 8 │ set special_property(x) {} i The name could be renamed to `specialProperty`. ``` ``` invalidClassSetter.js:8:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 6 │ set SpecialProperty(x) {} 7 │ > 8 │ set special_property(x) {} │ ^^^^^^^^^^^^^^^^ 9 │ 10 │ set Unknown_Style(x) {} i The name could be renamed to `specialProperty`. ``` ``` invalidClassSetter.js:10:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 8 │ set special_property(x) {} 9 │ > 10 │ set Unknown_Style(x) {} │ ^^^^^^^^^^^^^ 11 │ 12 │ set #X(x) {} i The name could be renamed to `unknownStyle`. ``` ``` invalidClassSetter.js:12:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 10 │ set Unknown_Style(x) {} 11 │ > 12 │ set #X(x) {} │ ^^ 13 │ 14 │ set #PROPERTY(x) {} i The name could be renamed to `x`. ``` ``` invalidClassSetter.js:14:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 12 │ set #X(x) {} 13 │ > 14 │ set #PROPERTY(x) {} │ ^^^^^^^^^ 15 │ 16 │ set #SpecialProperty(x) {} i The name could be renamed to `property`. ``` ``` invalidClassSetter.js:16:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 14 │ set #PROPERTY(x) {} 15 │ > 16 │ set #SpecialProperty(x) {} │ ^^^^^^^^^^^^^^^^ 17 │ 18 │ set #special_property(x) {} i The name could be renamed to `specialProperty`. ``` ``` invalidClassSetter.js:18:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 16 │ set #SpecialProperty(x) {} 17 │ > 18 │ set #special_property(x) {} │ ^^^^^^^^^^^^^^^^^ 19 │ 20 │ set #Unknown_Style(x) {} i The name could be renamed to `specialProperty`. ``` ``` invalidClassSetter.js:20:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class setter name should be in camelCase. 18 │ set #special_property(x) {} 19 │ > 20 │ set #Unknown_Style(x) {} │ ^^^^^^^^^^^^^^ 21 │ } i The name could be renamed to `unknownStyle`. ```