0.0.2 • Published 4 years ago
eslint-plugin-mdx-jsx v0.0.2
eslint-plugin-mdx-jsx
Enforce blank lines in block-level JSX
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
$ yarn add -D eslint
Next, install eslint-plugin-mdx-jsx
:
$ npm install eslint-plugin-mdx-jsx --save-dev
$ yarn add -D eslint-plugin-mdx-jsx
Usage
Add mdx-jsx
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"mdx-jsx"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"mdx-jsx/enforce-blank-lines": 2
}
}
Supported Rules
mdx-jsx/enforce-blank-lines