[Bug]: react/jsx-newline
does not remove empty lines for surrounding tags
#3663
Labels
react/jsx-newline
does not remove empty lines for surrounding tags
#3663
Is there an existing issue for this?
Description Overview
react/jsx-newline
with{ "prevent": true }
does not remove empty lines for surrounding tags.Currently
react/jsx-newline
does not detect any lint errors for the following JSX:Expected Behavior
The current detection feels like unintended behavior, as I would expect all newlines within JSX to be removed as follows:
If there is a different eslint rule that checks for this please let me know!
eslint-plugin-react version
v7.33.2
eslint version
v8.55.0
node version
v18.6.0
The text was updated successfully, but these errors were encountered: