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: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,8 @@ See [#251](https://github.com/mdx-js/eslint-mdx/issues/251#issuecomment-73613922
190
190
191
191
3.`markdownExtensions` (`string | string[]`):`eslint-mdx` will only treat `.md` files as plain markdown by default, and will lint them via remark plugins. If you want to resolve other extensions as like `.md`, you can use this option.
192
192
193
+
4.`ignoreRemarkConfig` (`boolean`): Ignore the `remark` configuration defined in the project.
194
+
193
195
## Rules
194
196
195
197
### mdx/no-jsx-html-comments
@@ -223,6 +225,8 @@ If you want to disable or change severity of some related rules, it won't work b
223
225
}
224
226
```
225
227
228
+
Some plugins are ESM and eslint don't supports them. So, a workaround is to set `ignoreRemarkConfig` to `true` and execute `remark-lint` through the terminal before running eslint. For example:`remark **/*.mdx --no-stdout && eslint . --fix --ext .mdx`.
229
+
226
230
## Prettier Integration
227
231
228
232
If you're using [remark-lint][] feature with [Prettier][] both together, you can try [remark-preset-prettier][] which helps you to _turn off all rules that are unnecessary or might conflict with [Prettier][]_.
Copy file name to clipboardExpand all lines: packages/eslint-mdx/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,8 @@ See [#251](https://github.com/mdx-js/eslint-mdx/issues/251#issuecomment-73613922
190
190
191
191
3.`markdownExtensions` (`string | string[]`):`eslint-mdx` will only treat `.md` files as plain markdown by default, and will lint them via remark plugins. If you want to resolve other extensions as like `.md`, you can use this option.
192
192
193
+
4.`ignoreRemarkConfig` (`boolean`): Ignore the `remark` configuration defined in the project.
194
+
193
195
## Rules
194
196
195
197
### mdx/no-jsx-html-comments
@@ -223,6 +225,8 @@ If you want to disable or change severity of some related rules, it won't work b
223
225
}
224
226
```
225
227
228
+
Some plugins are ESM and eslint don't supports them. So, a workaround is to set `ignoreRemarkConfig` to `true` and execute `remark-lint` through the terminal before running eslint. For example:`remark **/*.mdx --no-stdout && eslint . --fix --ext .mdx`.
229
+
226
230
## Prettier Integration
227
231
228
232
If you're using [remark-lint][] feature with [Prettier][] both together, you can try [remark-preset-prettier][] which helps you to _turn off all rules that are unnecessary or might conflict with [Prettier][]_.
0 commit comments