/eslint-plugin-mdx

ESLint Plugin for MDX

Primary LanguageJavaScriptMIT LicenseMIT

eslint-plugin-mdx

Travis Prettier npm semantic-release License

ESLint parser for MDX

Install

With yarn:

yarn add eslint-plugin-mdx

With npm:

npm install --save eslint-plugin-mdx

Usage

  1. In your ESLint config file, add:

    {
      "extends": ["plugin:mdx/recommended"]
    }
  2. Make sure ESLint knows to run on .mdx files:

    eslint --ext js,mdx .