--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx const Component = () => { return (
;
); } const Component2 = () => { return (
;
); } const Component3 = () => (
;
) ``` # Diagnostics ``` invalid.jsx:4:18 lint/nursery/noSemicolonInJsx ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! There is a suspicious semicolon in the JSX element. 2 │ return ( 3 │
> 4 │
; │ ^ > 5 │
│ 6 │ ); 7 │ } i This is usually the result of a typo or some refactor gone wrong. i Remove the semicolon, or move it inside a JSX element. ``` ``` invalid.jsx:14:23 lint/nursery/noSemicolonInJsx ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! There is a suspicious semicolon in the JSX element. 12 │ 13 │
> 14 │ ; │ ^ > 15 │
│ 16 │ ); 17 │ } i This is usually the result of a typo or some refactor gone wrong. i Remove the semicolon, or move it inside a JSX element. ``` ``` invalid.jsx:21:22 lint/nursery/noSemicolonInJsx ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! There is a suspicious semicolon in the JSX element. 19 │ const Component3 = () => ( 20 │
> 21 │ ; │ ^ > 22 │
│ 23 │ ) 24 │ i This is usually the result of a typo or some refactor gone wrong. i Remove the semicolon, or move it inside a JSX element. ```