Closed chenxsan closed 3 years ago
Thank you, I can reproduce it locally.
Workaround temporarily:
<div>
<img />
</div>
@chenxsan Please try
yarn add -D https://pkg.csb.dev/mdx-js/eslint-mdx/commit/a2199654/eslint-plugin-mdx
@JounQin Works fine now.
Subject of the issue
Here's the content of a mdx file:
And eslint would report an error shown below:
Now if I prepend a paragraph, e.g.,
Now the error would be fixed.
Your environment
Steps to reproduce
https://github.com/webpack/webpack.js.org/pull/5298
src/content/mdx.mdx
file with below content:npx eslint src/content/mdx.mdx
Expected behaviour
No error.
Actual behaviour
An error shown.