-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
no-unused-vars
error when using eslint-plugin-mdx
without eslint-plugin-react
.
#444
Comments
All right, here's why According to react/jsx-uses-vars, ESLint has stopped detecting variables used in JSX. Which means if we're going to use Hence I would suggest adding a notice to the readme, e.g., It's required to enable `eslint-plugin-react` to use alongside `eslint-plugin-mdx`.
Otherwise you could run into this `no-unused-vars` error. Another option is to make the rule of |
I have this issue, all my Storybook MDX components like
|
@kfayelun Please provide a minimal and runnable reproduction. |
Maybe we should mark |
Hey! Working on a big monorepo, producing a runnable repro is quite the task so I had to put this on the backlog. And now... when I went back to check, this isn't happening anymore :( I've restructured so much in this repo, so I'm not sure what did it. I'm sorry, I know this is not very helpful. |
I have this or a very similar issue in one of my repos. PR. Failing CI Job. I guess the best way of action would be to get |
@levino Sorry I didn't notice your comment previously, did you try to install |
Initial checklist
Affected packages and versions
Latest
Link to runnable example
https://stackblitz.com/edit/node-cppxmm?file=index.mdx
Steps to reproduce
npx eslint ./index.mdx
Expected behavior
No error reported.
Actual behavior
Enabling
eslint-plugin-react
would fix the error.Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: