-
-
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
Parse error on YAML headers #4
Comments
Thanks for reporting, I'll check as soon as possible. |
@cdfa I can not reproduce this error, can you try to upgrade you eslint version first? If it still throws error, please provide a runnable reproduction, so I can help to check. |
I updated Steps to reproduce:
I seem to get different parse errors depending on whether I put |
Thanks for reproduction, I'll take a look A.S.A.P. . |
@cdfa You need to pass a custom parser, because the ast has been transformed by other parsers/plugins: {
"files": ["*.mdx"],
"extends": ["plugin:@rxts/mdx/recommended"],
"parserOptions": {
"parser": "babel-eslint"
}
} However, there still is an error: /Users/JounQin/Workspaces/GitHub/react-turn-reveal/index.mdx
6:3 error Parsing error: Unexpected token
> 1 | <!-- markdownlint-disable MD041 -->
| ^
✖ 1 problem (1 error, 0 warnings) I will fix it tonight. |
Ah great to learn the root cause! Thank you for your quick work! |
@cdfa Please try v0.3.1 <Playground style={{ display: "flex", justifyContent: "center" }}>
{() => {
const perspective = 400;
return (
<div style={{ position: "relative", perspective: perspective + "px" }}>
<FollowReveal perspective={perspective}>
<Front>More info</Front>
</FollowReveal>
<PlaceHolderImage />
</div>
);
}}
</Playground> Wait for a while. |
Hi, I want to use this plugin for linting my Docz documentation written in MDX, but the plugin seems unable to parse the YAML headers used for configuration.
Example:
Error:
The text was updated successfully, but these errors were encountered: