Closed alexkrautmann closed 3 years ago
When newlines exist between 2 nested jsx nodes, linting of the file fails with Parsing error: unknown jsx node.
Parsing error: unknown jsx node
eslint@7.20.0
eslint-plugin-mdx@1.8.2
eslint-plugin-react@7.22.0
node@14.15.5
yarn@1.22.10
codesandbox
Error
<div> <p>test</p> <p>test</p> </div>
No Error
This should pass lint without error
Lint fails with error
Thanks for your reporting, I can imagine that's caused by strict RegExp to match jsx node which does not allow leading space.
I'll try to resolve it when I'm free.
Subject of the issue
When newlines exist between 2 nested jsx nodes, linting of the file fails with
Parsing error: unknown jsx node
.Your environment
eslint@7.20.0
eslint-plugin-mdx@1.8.2
eslint-plugin-react@7.22.0
node@14.15.5
, (10.23.0 in CodeSandbox)yarn@1.22.10
Steps to reproduce
codesandbox
Error
No Error
Expected behaviour
This should pass lint without error
Actual behaviour
Lint fails with error