You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,12 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
@@ -16,7 +21,7 @@ All notable changes to this project will be documented in this file. See [standa
16
21
17
22
### Bug Fixes
18
23
19
-
*.* could not match multi lines, use [\s\S]* instead, close [#4](https://github.com/rx-ts/eslint-plugin-mdx/issues/4) ([f7e7efe](https://github.com/rx-ts/eslint-plugin-mdx/commit/f7e7efe))
24
+
*`.*` could not match multi lines, use `[\s\S]*` instead, close [#4](https://github.com/rx-ts/eslint-plugin-mdx/issues/4) ([f7e7efe](https://github.com/rx-ts/eslint-plugin-mdx/commit/f7e7efe))
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ npm i -D @rxts/eslint-plugin-mdx
57
57
"parser": "@rxts/eslint-plugin-mdx",
58
58
"plugins": ["@rxts/mdx"],
59
59
"rules": {
60
+
"@rxts/mdx/no-unused-expressions": 2,
61
+
"no-unused-expressions": 0,
60
62
"react/react-in-jsx-scope": 0
61
63
}
62
64
}
@@ -86,12 +88,9 @@ npm i -D @rxts/eslint-plugin-mdx
86
88
}
87
89
```
88
90
89
-
## Limitations
91
+
## Limitation
90
92
91
-
1. This parser/plugin can only handle ES syntaxes for you, markdown related syntaxes will just be ignored, you can use [markdownlint](https://github.com/markdownlint/markdownlint) to lint that part.
92
-
93
-
2.`MDX` can render `jsx` block automatically without exporting them, but `eslint` will report `no-unused-expressions` issue which could be unexpected, so you may need to disable this rule for `*.mdx`.
94
-
I'm not going to disable this rule in the recommended config, because I'm going to add a custom `mdx/no-unused-expressions` rule to replace the incompatible one, which should not affect the `jsx` codes.
93
+
> This parser/plugin can only handle ES syntaxes for you, markdown related syntaxes will just be ignored, you can use [markdownlint](https://github.com/markdownlint/markdownlint) to lint that part.
0 commit comments