Skip to content

Commit 53c4a23

Browse files
committed
docs: notice about custom parser
1 parent b718574 commit 53c4a23

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
[![David Dev](https://img.shields.io/david/dev/rx-ts/eslint-plugin-mdx.svg)](https://david-dm.org/rx-ts/eslint-plugin-mdx?type=dev)
77
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
88
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
9-
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
109

1110
> [ESLint](https://eslint.org/) Parser/Plugin for [MDX](https://github.com/mdx-js/mdx)
1211
@@ -44,3 +43,27 @@ npm i -D @rxts/eslint-plugin-mdx
4443
```sh
4544
eslint . --ext js,mdx
4645
```
46+
47+
3. Custom parser for ES syntax is also supported:
48+
49+
```json
50+
{
51+
"overrides": [
52+
{
53+
"files": ["*.mdx"],
54+
"extends": ["plugin:@rxts/mdx/recommended"],
55+
"parserOptions": {
56+
"parser": "babel-eslint"
57+
}
58+
}
59+
]
60+
}
61+
```
62+
63+
## Changelog
64+
65+
Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
66+
67+
## License
68+
69+
[MIT](http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)