|
13 | 13 | [](https://travis-ci.com/rx-ts/eslint-mdx) |
14 | 14 | [](https://codecov.io/gh/rx-ts/eslint-mdx) |
15 | 15 | [](https://github.com/rx-ts/eslint-mdx/releases) |
| 16 | +[](https://david-dm.org/rx-ts/eslint-mdx?type=dev) |
16 | 17 | [](https://conventionalcommits.org) |
17 | 18 | [](https://github.com/prettier/prettier) |
18 | 19 | [](https://lerna.js.org) |
19 | 20 |
|
20 | 21 | > [ESLint] Parser/Plugin for [MDX], helps you lint all ES syntaxes excluding `code` block of course. |
21 | 22 | > Work perfectly with `eslint-plugin-import`, `eslint-plugin-prettier` or any other eslint plugins. |
22 | 23 |
|
| 24 | +## VSCode Extension [](https://marketplace.visualstudio.com/items?itemName=JounQin.vscode-mdx) |
| 25 | + |
| 26 | +[VSCode MDX]: Integrates with [VSCode ESLint], syntaxes highlighting and error reporting. |
| 27 | + |
23 | 28 | ## Packages |
24 | 29 |
|
25 | | -This repository is a monorepo managed by Lerna what means we actually publish several packages to npm from the same codebase, including: |
| 30 | +This repository is a monorepo managed by [Lerna] what means we actually publish several packages to npm from same codebase, including: |
26 | 31 |
|
27 | | -| Package | Version | Dependencies Status | Description | |
28 | | -| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | |
29 | | -| [`eslint-mdx`](/packages/eslint-mdx) | [](https://www.npmjs.com/package/eslint-mdx) | [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-mdx&type=peer) [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-mdx) | ESLint Parser for MDX | |
30 | | -| [`@rxts/eslint-plugin-mdx`](/packages/eslint-plugin-mdx) | [](https://www.npmjs.com/package/@rxts/eslint-plugin-mdx) | [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-plugin-mdx&type=peer) [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-plugin-mdx) | ESLint Plugin, Configuration and Rules for MDX | |
| 32 | +| Package | Description | Version | Peer Dependencies | Dependencies | |
| 33 | +| -------------------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 34 | +| [`eslint-mdx`](/packages/eslint-mdx) | ESLint Parser for MDX | [](https://www.npmjs.com/package/eslint-mdx) | [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-mdx&type=peer) | [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-mdx) | |
| 35 | +| [`@rxts/eslint-plugin-mdx`](/packages/eslint-plugin-mdx) | ESLint Plugin, Configuration and Rules for MDX | [](https://www.npmjs.com/package/@rxts/eslint-plugin-mdx) | [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-plugin-mdx&type=peer) | [](https://david-dm.org/rx-ts/eslint-mdx?path=packages/eslint-plugin-mdx) | |
31 | 36 |
|
32 | 37 | ## Install |
33 | 38 |
|
@@ -57,7 +62,7 @@ npm i -D @rxts/eslint-plugin-mdx |
57 | 62 | } |
58 | 63 | ``` |
59 | 64 |
|
60 | | - 2. If you're using `eslint@^5.0.0`, you need to enable this parse/plugin manually, because `eslint@5` does not support `extends` for `overrides` property in its configuration: |
| 65 | + 2. If you're using `eslint@^5.0.0`, you need to enable this parser/plugin manually, because `eslint@5` does not support `extends` for `overrides` property in its configuration: |
61 | 66 |
|
62 | 67 | ```json |
63 | 68 | { |
@@ -85,7 +90,7 @@ npm i -D @rxts/eslint-plugin-mdx |
85 | 90 |
|
86 | 91 | ## Parser Options |
87 | 92 |
|
88 | | -1. `parser` (`string | ParserConfig | ParserFn`): Custom parser for ES syntax is supported, although `@typescript-eslint/parser` or `babel-eslint` will be detected automatically what means you actually do not need do this: |
| 93 | +1. `parser` (`string | ParserConfig | ParserFn`): Custom parser for ES syntax is supported, although `@typescript-eslint/parser` or `babel-eslint` will be detected automatically what means you actually do not need to do this: |
89 | 94 |
|
90 | 95 | ```json |
91 | 96 | { |
@@ -114,21 +119,26 @@ Inline JSX like `Inline <Component />` is supported by [MDX], but rule `react/no |
114 | 119 |
|
115 | 120 | ## Limitation |
116 | 121 |
|
117 | | -> This parser/plugin can only handle ES syntaxes for you, markdown related syntaxes will just be ignored, you can use [markdownlint] or [remake-lint] to lint that part. |
| 122 | +> This parser/plugin can only handle ES syntaxes for you, markdown related syntaxes will just be ignored, you can use [markdownlint] or [remark-lint] to lint that part. |
118 | 123 |
|
119 | | -I have a very preliminary idea to integrate with [remake-lint]. |
| 124 | +I have a very preliminary idea to integrate with [remark-lint]. |
120 | 125 |
|
121 | 126 | ## Changelog |
122 | 127 |
|
123 | 128 | Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md). |
124 | 129 |
|
125 | 130 | ## License |
126 | 131 |
|
127 | | -[MIT] |
| 132 | +[MIT] © [JounQin]@[1stG] |
128 | 133 |
|
| 134 | +[1stg]: https://www.1stg.me |
129 | 135 | [eslint]: https://eslint.org |
130 | 136 | [eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react |
| 137 | +[jounqin]: https://GitHub.com/JounQin |
| 138 | +[lerna]: https://github.com/lerna/lerna |
131 | 139 | [mdx]: https://github.com/mdx-js/mdx |
132 | 140 | [mit]: http://opensource.org/licenses/MIT |
133 | 141 | [markdownlint]: https://github.com/markdownlint/markdownlint |
134 | | -[remake-lint]: https://github.com/remarkjs/remark-lint |
| 142 | +[remark-lint]: https://github.com/remarkjs/remark-lint |
| 143 | +[vscode eslint]: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint |
| 144 | +[vscode mdx]: https://github.com/rx-ts/vscode-mdx |
0 commit comments