Closed vb closed 1 year ago
Some additional info:
The new version 2.1.0 (and older versions afaik) throws the error Parsing error: Expected value to be truthy
when using spaces instead of tabs when passing an object as prop in JSX.
<button
style={{
background: 'red',
border: '1px solid red',
}}
>
Hello
</button>
Minimal reproducible example is available here https://github.com/vb/eslint-plugin-mdx-tabs-spaces
duplicate of #435
And I believe you mixed up the two styles 😂
https://github.com/vb/eslint-plugin-mdx-tabs-spaces/blob/main/spaces.mdx?plain=1
This file is using tabs and resulting the error.
You're right and sorry for the duplicate! I did not see the other ticket
Initial checklist
Affected packages and versions
eslint-plugin-mdx 2.1.0
Link to runnable example
https://github.com/vb/eslint-plugin-mdx-tabs-spaces
Steps to reproduce
https://github.com/vb/eslint-plugin-mdx-tabs-spaces
npm install
npm run lint
Expected behavior
Both mdx files should lint without errors
Actual behavior
eslint throws error on file
spaces.mdx
Runtime
Node v18
Package manager
npm v9
OS
macOS
Build and bundle tools
No response