eslint-plugin-mdx
Install
With yarn
:
yarn add eslint-plugin-mdx
With npm
:
npm install --save eslint-plugin-mdx
Usage
-
In your ESLint config file, add:
{ "extends": ["plugin:mdx/recommended"] }
-
Make sure ESLint knows to run on
.mdx
files:eslint --ext js,mdx .