--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidObjectSetter.js --- # Input ```jsx export default { set X(x) {}, set PROPERTY(x) {}, set SpecialProperty(x) {}, set special_property(x) {}, set Unknown_Style(x) {}, } ``` # Diagnostics ``` invalidObjectSetter.js:2:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object setter name should be in camelCase. 1 │ export default { > 2 │ set X(x) {}, │ ^ 3 │ 4 │ set PROPERTY(x) {}, i The name could be renamed to `x`. ``` ``` invalidObjectSetter.js:4:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object 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`. ``` ``` invalidObjectSetter.js:6:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object 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`. ``` ``` invalidObjectSetter.js:8:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object 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`. ``` ``` invalidObjectSetter.js:10:9 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object setter name should be in camelCase. 8 │ set special_property(x) {}, 9 │ > 10 │ set Unknown_Style(x) {}, │ ^^^^^^^^^^^^^ 11 │ } i The name could be renamed to `unknownStyle`. ```