Skip to content
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

react/self-closing-comp rule is applied to HTML tags whose contents are markdown #547

Open
4 tasks done
Phebonacci opened this issue Jul 15, 2024 · 0 comments
Open
4 tasks done

Comments

@Phebonacci
Copy link

Phebonacci commented Jul 15, 2024

Initial checklist

Affected packages and versions

3.1.5

Link to runnable example

https://codesandbox.io/p/devbox/eslint-mdx-bug-rc3dvc?file=%2Fpackage.json%3A17%2C26

Steps to reproduce

  1. On the terminal, run eslint for the test file:
    yarn eslint app/test.mdx
    

Expected behavior

The react/self-closing-comp rule should not trigger for the list tags whose contents are markdown.

Actual behavior

The react/self-closing-comp rule is triggered for the list tags even though they have contents.
image

Runtime

Node v20

Package manager

yarn

OS

No response

Build and bundle tools

Next.js

Relevant issues

Something similar has been reported before and it has been fixed. The difference with this new issue is the content is a markdown:
image

@Phebonacci Phebonacci changed the title react/self-closing-comp rule is applied to elements with markdown links only react/self-closing-comp rule is applied to elements whose contents are markdown Jul 15, 2024
@Phebonacci Phebonacci changed the title react/self-closing-comp rule is applied to elements whose contents are markdown react/self-closing-comp rule is applied to HTML tags whose contents are markdown Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant