Closed
Description
Subject of the issue
Here's the content of a mdx file:
<div> <img /> </div> ```js module.exports = { plugins: [], }; ```
And eslint would report an error shown below:
Now if I prepend a paragraph, e.g.,
hello world. <div> <img /> </div> ```js module.exports = { plugins: [], }; ```
Now the error would be fixed.
Your environment
- OS:
- Packages:
- Env:
Steps to reproduce
- clone code from
https://github.com/webpack/webpack.js.org/pull/5298
- add a
src/content/mdx.mdx
file with below content:
<div> <img /> </div> ```js module.exports = { plugins: [], }; ```
- run
npx eslint src/content/mdx.mdx
Expected behaviour
No error.
Actual behaviour
An error shown.