Skip to content

no-unused-expressions reported on {' '} #548

@karlhorky

Description

@karlhorky

Initial checklist

Affected packages and versions

eslint-plugin-mdx@3.1.5

Link to runnable example

No response

Steps to reproduce

  1. Set up eslint-plugin-mdx@3.1.5 using the recommended config
  2. Lint the following file

index.mdx

Before{' '}after

Observe that a problem is reported on the {' '}:

Screenshot 2024-08-07 at 18 28 31

Expected an assignment or function call and instead saw an expression. eslint no-unused-expressions

Possibly related

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:

Screenshot 2024-08-07 at 18 28 47

Actual behavior

Problem is reported, as above

Runtime

No response

Package manager

No response

OS

macOS

Build and bundle tools

No response

Metadata

Metadata

Assignees

Labels

help wanted 🙏This could use your insight or help🐛 type/bugThis is a problem🙆 yes/confirmedThis is confirmed and ready to be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions