In Astro files: "Parsing error: JSX expressions must have one parent element." #312
Closed
2 tasks done
Labels
bug
Something isn't working
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.56.0
What version of
eslint-plugin-astro
are you using?0.31.3
What did you do?
Since updating from
astro 4.2.1
to4.2.6
, I'm getting the error "Parsing error: JSX expressions must have one parent element." even in .astro files with e.g. the following content:What did you expect to happen?
No error.
What actually happened?
Parsing error: JSX expressions must have one parent element
Link to Minimal Reproducible Example
https://ota-meshi.github.io/eslint-plugin-astro/playground/#eJyrVkrOT0lVslKqjo7Vy00s0MhUsLVT0IjJU1CwKbArySzJSbXRL7CD8qszayE8zVqlWgAiJhJ2
Additional comments
Using fragments like
<>...</>
instead of braces(...)
fixes it of course. But is this changed intended? I thought Astro files were not supposed to require that?The text was updated successfully, but these errors were encountered: