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

anchor-has-content false negative in mdx file #917

Open
smellai opened this issue Jan 18, 2023 · 3 comments
Open

anchor-has-content false negative in mdx file #917

smellai opened this issue Jan 18, 2023 · 3 comments

Comments

@smellai
Copy link

smellai commented Jan 18, 2023

Screenshot 2023-01-17 alle 16 35 55

  • node v16.17.0
  • eslint v8.31.0
  • eslint-plugin-jsx-a11y v6.7.0
  • eslint-plugin-mdx v2.0.5
  • @mdx-js/react v1.6.22
  • storybook v6.5.15

works fine in jsx files in the same project

@ljharb
Copy link
Member

ljharb commented Jan 18, 2023

What's your eslint config? i have no idea what would parse mdx.

@smellai
Copy link
Author

smellai commented Jan 19, 2023

I have this configuration in eslintrc:

"overrides": [
    {
      "files": ["*.mdx"],
      "extends": ["plugin:mdx/recommended"]
    }
  ]

Reference: https://www.npmjs.com/package/eslint-plugin-mdx

@ljharb
Copy link
Member

ljharb commented Jan 19, 2023

Since it claims it works perfectly with eslint-plugin-import, you may want to file a bug on that plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants