eslint-mdx
eslint-mdx copied to clipboard
`no-unused-expressions` reported on `{' '}`
trafficstars
Initial checklist
- [X] I read the support docs
- [X] I read the contributing guide
- [X] I agree to follow the code of conduct
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
Link to runnable example
No response
Steps to reproduce
- Set up
[email protected]using the recommended config - Lint the following file
index.mdx
Before{' '}after
Observe that a problem is reported on the {' '}:
Expected an assignment or function call and instead saw an expression. eslint no-unused-expressions
Possibly related
- https://github.com/mdx-js/eslint-mdx/issues/384
Expected behavior
No problem is reported
I'm assuming this should be accepted syntax because the MDX Playground shows that the {' '} will result in a space:
Actual behavior
Problem is reported, as above
Runtime
No response
Package manager
No response
OS
macOS
Build and bundle tools
No response