-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are serious issues when used with the react/self-closing-comp
/ react/jsx-sort-props
rules.
#488
Closed
4 tasks done
Labels
Comments
OK, the
Just for confirming, |
@JounQin Yes, they have no issues in the code block. |
@u3u Please help to test: # yarn 1
yarn add https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2dbcb20a/eslint-mdx https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2dbcb20a/eslint-plugin-mdx
# yarn 2, 3
yarn add eslint-mdx@https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2dbcb20a/eslint-mdx/_pkg.tgz eslint-plugin-mdx@https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2dbcb20a/eslint-plugin-mdx/_pkg.tgz
# npm
npm i https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2dbcb20a/eslint-mdx https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2dbcb20a/eslint-plugin-mdx |
🥳 Perfect! Screen.Recording.2023-12-11.at.11.36.47.mov |
JounQin
added
🐛 type/bug
This is a problem
🙆 yes/confirmed
This is confirmed and ready to be worked on
labels
Dec 11, 2023
5 tasks
JounQin
added a commit
that referenced
this issue
Dec 20, 2023
5 tasks
v2.2.1 has already been released. |
Thanks! |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Initial checklist
Affected packages and versions
2.2.0
Link to runnable example
No response
Steps to reproduce
Clone this repository u3u/eslint-config, and input the above content in any mdx file to reproduce.
Expected behavior
Keep consistent with
mdx/code-blocks
.Actual behavior
<span>test</span>
Regarded as an empty tag self-closing, it will be fixed to<span />
, directly losing the content.Runtime
Node v20
Package manager
pnpm
OS
macOS
Build and bundle tools
esbuild
The text was updated successfully, but these errors were encountered: