--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidClassMethod.js --- # Input ```jsx export default class { M() {} METHOD() {} AMethod() {} method_1() {} Unknown_Style() {} #M() {} #METHOD() {} #AMethod() {} #method_1() {} #Unknown_Style() {} } ``` # Diagnostics ``` invalidClassMethod.js:2:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 1 │ export default class { > 2 │ M() {} │ ^ 3 │ 4 │ METHOD() {} i The name could be renamed to `m`. ``` ``` invalidClassMethod.js:4:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 2 │ M() {} 3 │ > 4 │ METHOD() {} │ ^^^^^^ 5 │ 6 │ AMethod() {} i The name could be renamed to `method`. ``` ``` invalidClassMethod.js:6:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 4 │ METHOD() {} 5 │ > 6 │ AMethod() {} │ ^^^^^^^ 7 │ 8 │ method_1() {} i The name could be renamed to `aMethod`. ``` ``` invalidClassMethod.js:8:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 6 │ AMethod() {} 7 │ > 8 │ method_1() {} │ ^^^^^^^^ 9 │ 10 │ Unknown_Style() {} i The name could be renamed to `method1`. ``` ``` invalidClassMethod.js:10:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 8 │ method_1() {} 9 │ > 10 │ Unknown_Style() {} │ ^^^^^^^^^^^^^ 11 │ 12 │ #M() {} i The name could be renamed to `unknownStyle`. ``` ``` invalidClassMethod.js:12:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 10 │ Unknown_Style() {} 11 │ > 12 │ #M() {} │ ^^ 13 │ 14 │ #METHOD() {} i The name could be renamed to `m`. ``` ``` invalidClassMethod.js:14:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 12 │ #M() {} 13 │ > 14 │ #METHOD() {} │ ^^^^^^^ 15 │ 16 │ #AMethod() {} i The name could be renamed to `method`. ``` ``` invalidClassMethod.js:16:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 14 │ #METHOD() {} 15 │ > 16 │ #AMethod() {} │ ^^^^^^^^ 17 │ 18 │ #method_1() {} i The name could be renamed to `aMethod`. ``` ``` invalidClassMethod.js:18:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 16 │ #AMethod() {} 17 │ > 18 │ #method_1() {} │ ^^^^^^^^^ 19 │ 20 │ #Unknown_Style() {} i The name could be renamed to `method1`. ``` ``` invalidClassMethod.js:20:5 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This class method name should be in camelCase. 18 │ #method_1() {} 19 │ > 20 │ #Unknown_Style() {} │ ^^^^^^^^^^^^^^ 21 │ } i The name could be renamed to `unknownStyle`. ```