Skip to content

no-unused-vars error when using eslint-plugin-mdx without eslint-plugin-react. #444

Open
@chenxsan

Description

@chenxsan

Initial checklist

Affected packages and versions

Latest

Link to runnable example

https://stackblitz.com/edit/node-cppxmm?file=index.mdx

Steps to reproduce

  1. Open reproducible link
  2. run npx eslint ./index.mdx

Expected behavior

No error reported.

Actual behavior

/home/projects/node-cppxmm/index.mdx
  1:8  error  'MyForm' is defined but never used  no-unused-vars

Enabling eslint-plugin-react would fix the error.

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions