--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx import React, {Fragment} from "react";
{/* invalid */}

Lorem

Ipsum
Lorem

Lorem

Ipsum
``` # Diagnostics ``` invalid.jsx:5:5 lint/style/useFragmentSyntax FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use shorthand syntax for Fragment elements instead of standard syntax. 3 │
4 │ {/* invalid */} > 5 │ │ ^^^^^^^^^^ > 6 │

Lorem

> 7 │ Ipsum > 8 │
│ ^^^^^^^^^^^ 9 │ 10 │ i Shorthand fragment syntax saves keystrokes and is only inapplicable when keys are required. i Unsafe fix: Replace with the fragment syntax 3 3 │
4 4 │ {/* invalid */} 5 │ - ···· 5 │ + ····<> 6 6 │

Lorem

7 7 │ Ipsum 8 │ - ····
8 │ + ···· 9 9 │ 10 10 │ ``` ``` invalid.jsx:10:5 lint/style/useFragmentSyntax FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use shorthand syntax for Fragment elements instead of standard syntax. 8 │ 9 │ > 10 │ │ ^^^^^^^^^^^^^^^^ > 11 │ Lorem > 12 │ > 13 │ │ ^^^^^^^^^^^^^^^^^ 14 │ 15 │ i Shorthand fragment syntax saves keystrokes and is only inapplicable when keys are required. i Unsafe fix: Replace with the fragment syntax 8 8 │ 9 9 │ 10 │ - ···· 10 │ + ····<> 11 11 │ Lorem 12 12 │ 13 │ - ···· 13 │ + ···· 14 14 │ 15 15 │ ``` ``` invalid.jsx:15:5 lint/style/useFragmentSyntax FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Use shorthand syntax for Fragment elements instead of standard syntax. 13 │ 14 │ > 15 │ │ ^^^^^^^^^^^^^^^^^^^^^ > 16 │

Lorem

> 17 │ Ipsum > 18 │ │ ^^^^^^^^^^^^^^^^^^^^^^^ 19 │
i Shorthand fragment syntax saves keystrokes and is only inapplicable when keys are required. i Unsafe fix: Replace with the fragment syntax 13 13 │
14 14 │ 15 │ - ···· 15 │ + ···· 16 16 │

Lorem

17 17 │ Ipsum 18 │ - ···· 18 │ + ···· 19 19 │
```