eslint-plugin-mdx has 530,122 recorded weekly downloads on npm, an increase of 4.7% over the past 30 days, ranking #392 of 3,247 tracked listings.
About eslint-plugin-mdx
[ESLint][] Parser/Plugin for [MDX][], helps you lint all ES syntaxes. Linting
codeblocks can be enabled withmdx/code-blockssetting too! Work perfectly witheslint-plugin-import,eslint-plugin-prettieror any other eslint plugins. And also can be integrated with [remark-lint][] plugins to lint markdown syntaxes.
TOC <!-- omit in toc -->
- VSCode Extension
- Packages
- Install
- Notice
- Usage
- Parser Options
- Parser API
- Rules
- Prettier Integration
- Sponsors and Backers
- Changelog
- License
VSCode Extension
[VSCode MDX][]: Integrates with [VSCode ESLint][], syntaxes highlighting and error reporting.
Packages
This repository is a monorepo managed by [changesets][] what means we actually publish several packages to npm from same codebase, including:
| Package | Description | Version |
|---|---|---|
eslint-mdx | ESLint Parser for MDX | |
eslint-plugin-mdx | ESLint Plugin, Configuration and Rules for MDX |
Install
# yarn
yarn add -D eslint-plugin-mdx
# npm
npm i -D eslint-plugin-mdx
Notice
-
If you're using multi languages,
js/jsx/ts/tsx/vue, etc for example, you'd better to always useoverrides(Classic Config) orfiles(Flag Config) feature of ESLint, because configs may be overridden by following configs.See #251 for more details.
-
If you're using
<!-- eslint-skip -->{/* eslint-disable-line mdx/remark */}withprettier, this won't work becauseprettierwill add a blank line after the comment, which makes it invalid. You can use{/* eslint-disable mdx/remark */}paired with{/* eslint-enable mdx/remark */}instead:{/* eslint-disable mdx/remark */} # Heading {/* eslint-enable mdx/remark */}
Usage
Classic Config
.eslintrc file:
{
"extends": ["plugin:mdx/recommended"],
// optional, if you want to lint code blocks at the same time
"settings": {
"mdx/code-blocks": true,
// optional, if you want to disable language mapper, set it to `false`
// if you want to override the default language mapper inside, you can provide your own
"mdx/language-mapper": {},
// optional, same as the `parserOptions.ignoreRemarkConfig`, you have to specify it twice unfortunately
"mdx/ignore-remark-config": true,
// optional, same as the `parserOptions.remarkConfigPath`, you have to specify it twice unfortunately
"mdx/remark-config-path": "path/to/your/remarkrc",
},
}
Flat Config
eslint.config.js file:
import * as mdx from 'eslint-plugin-mdx'…
Description from the npm listing.
- eslint
- eslint-mdx
- eslint-plugin
- eslint-plugin-mdx
- mdx
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (591)Similar npm ESLint plugins plugins
All 20 eslint-plugin-mdx alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-mdx. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.