-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Feature/enable eslint-plugin-mdx #4326
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/4J62FJC7D7PnziVxqT86xh61jZDP |
Why? |
Because the |
Agree, but we shouldn't blindly switch everything when MDX features are only used in a few files of hundreds. |
Don't worry, I won't migrate all to |
Hi, what do you mean by Maybe related to mdx-js/mdx-analyzer#163? |
It won't highlight those errors: here's a version of md: |
Yes, try to add |
Cool, did fix the problem. |
@JounQin I just notice a warning on my local computer: /Users/sam/Documents/githubRepos/webpack.js.org/src/components/NotificationBar/Notification.mdx
1:94 warning `"` can be escaped with `"`, `“`, `"`, `”` mdx/no-unescaped-entities
1:95 warning `>` can be escaped with `>` mdx/no-unescaped-entities
1:111 warning `>` can be escaped with `>` mdx/no-unescaped-entities Here's the content of Webpack 5 has been officially released. Read our <a href="/blog/2020-10-10-webpack-5-release/">announcement</a>. Not ready yet? Read <a href="https://v4.webpack.js.org/">webpack 4 documentation here</a>. Do you have any idea? I think it's valid syntax to use jsx inside markdown? |
@chenxsan Please report it to You can wrap it into |
We have some
mdx
files now, and it's likely that we will migrate all.md
to.mdx
, hence enablingeslint-plugin-mdx
should help catching problems.Thanks to @JounQin, all issues listed below are gone now.
There're some issues at the moment:- Those code blocks in
.mdx
files won't get linted aseslint-plugin-mdx
doesn't support it.vscode-mdx
extension doesn't work as expected in my test.