--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidCatchParameter.js --- # Input ```jsx try {} catch(E) {} try {} catch(SpecificError) {} try {} catch(specific_error) {} try {} catch(SPECIFIC_ERROR) {} ``` # Diagnostics ``` invalidCatchParameter.js:1:14 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This catch parameter name should be in camelCase. > 1 │ try {} catch(E) {} │ ^ 2 │ 3 │ try {} catch(SpecificError) {} i The name could be renamed to `e`. i Safe fix: Rename this symbol in camelCase. 1 │ - try·{}·catch(E)·{} 1 │ + try·{}·catch(e)·{} 2 2 │ 3 3 │ try {} catch(SpecificError) {} ``` ``` invalidCatchParameter.js:3:14 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This catch parameter name should be in camelCase. 1 │ try {} catch(E) {} 2 │ > 3 │ try {} catch(SpecificError) {} │ ^^^^^^^^^^^^^ 4 │ 5 │ try {} catch(specific_error) {} i The name could be renamed to `specificError`. i Safe fix: Rename this symbol in camelCase. 1 1 │ try {} catch(E) {} 2 2 │ 3 │ - try·{}·catch(SpecificError)·{} 3 │ + try·{}·catch(specificError)·{} 4 4 │ 5 5 │ try {} catch(specific_error) {} ``` ``` invalidCatchParameter.js:5:14 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This catch parameter name should be in camelCase. 3 │ try {} catch(SpecificError) {} 4 │ > 5 │ try {} catch(specific_error) {} │ ^^^^^^^^^^^^^^ 6 │ 7 │ try {} catch(SPECIFIC_ERROR) {} i The name could be renamed to `specificError`. i Safe fix: Rename this symbol in camelCase. 3 3 │ try {} catch(SpecificError) {} 4 4 │ 5 │ - try·{}·catch(specific_error)·{} 5 │ + try·{}·catch(specificError)·{} 6 6 │ 7 7 │ try {} catch(SPECIFIC_ERROR) {} ``` ``` invalidCatchParameter.js:7:14 lint/style/useNamingConvention FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This catch parameter name should be in camelCase. 5 │ try {} catch(specific_error) {} 6 │ > 7 │ try {} catch(SPECIFIC_ERROR) {} │ ^^^^^^^^^^^^^^ 8 │ i The name could be renamed to `specificError`. i Safe fix: Rename this symbol in camelCase. 5 5 │ try {} catch(specific_error) {} 6 6 │ 7 │ - try·{}·catch(SPECIFIC_ERROR)·{} 7 │ + try·{}·catch(specificError)·{} 8 8 │ ```