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
mdx/no-unescaped-entities
usage issue
#217
Comments
Because there is no empty line in AST, so after combined into single jsx node, the jsx code actually used by ESLint parser is like following: <div style={{ color: 'white', backgroundColor: 'black', padding: '24px 32px' }}><a
style={{
color: 'white',
textDecoration: 'none',
fontWeight: 'bold',
fontSize: 32
}}
href="https://blacklivesmatters.carrd.co/"
>
#BlackLivesMatter →
</a></div> What makes the ESLint AST different with the actual code. cc @wooorm |
Yeah, MDX@1 doesn’t like blank lines. That’s the issue, right?. This is something MDX@2 will do very differently, and I believe much better, though? |
I found a way to skip using https://github.com/mdx-js/eslint-mdx/pull/218/files#diff-d1b4b2537d369552aca7acbfd12a8d70R29 |
The text was updated successfully, but these errors were encountered: