--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidObjectMethod.js --- # Input ```jsx export default { METHOD() {}, AMethod() {}, method_1() {}, Unknown_Style() {}, } ``` # Diagnostics ``` invalidObjectMethod.js:2:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object method name should be in camelCase. 1 │ export default { > 2 │ METHOD() {}, │ ^^^^^^ 3 │ 4 │ AMethod() {}, i The name could be renamed to `method`. ``` ``` invalidObjectMethod.js:4:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object method name should be in camelCase. 2 │ METHOD() {}, 3 │ > 4 │ AMethod() {}, │ ^^^^^^^ 5 │ 6 │ method_1() {}, i The name could be renamed to `aMethod`. ``` ``` invalidObjectMethod.js:6:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object method name should be in camelCase. 4 │ AMethod() {}, 5 │ > 6 │ method_1() {}, │ ^^^^^^^^ 7 │ 8 │ Unknown_Style() {}, i The name could be renamed to `method1`. ``` ``` invalidObjectMethod.js:8:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This object method name should be in camelCase. 6 │ method_1() {}, 7 │ > 8 │ Unknown_Style() {}, │ ^^^^^^^^^^^^^ 9 │ } i The name could be renamed to `unknownStyle`. ```