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