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
// unnecessary if you're not using `eslint-plugin-prettier`, but required if you are
87
+
"parser":"markdown"
88
+
}
89
+
]
90
+
}
91
+
},
79
92
{
80
93
"files": ["*.mdx"],
81
94
"extends": ["plugin:mdx/overrides"]
@@ -92,6 +105,18 @@ npm i -D eslint-plugin-mdx
92
105
module.exports = {
93
106
extends: ['plugin:mdx/recommended'],
94
107
overrides: [
108
+
{
109
+
files: ['*.md'],
110
+
rules: {
111
+
'prettier/prettier': [
112
+
2,
113
+
{
114
+
// unnecessary if you're not using `eslint-plugin-prettier`, but required if you are
115
+
parser:'markdown',
116
+
},
117
+
],
118
+
},
119
+
},
95
120
Object.assign(
96
121
{
97
122
files: ['*.mdx'],
@@ -143,7 +168,22 @@ Inline JSX like `Inline <Component />` is supported by [MDX][], but rule `react/
143
168
144
169
_possible fixable depends on your remark plugins_:
145
170
146
-
Integration with [remark][] plugins without [remark-lint][], it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig][]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.
171
+
Integration with [remark-lint][] plugins, it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig][]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.
172
+
173
+
## Prettier Integration
174
+
175
+
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]_.
176
+
177
+
```json
178
+
{
179
+
"plugins": [
180
+
"preset-lint-consistent",
181
+
"preset-lint-recommended",
182
+
"preset-lint-markdown-style-guide",
183
+
"preset-prettier"
184
+
]
185
+
}
186
+
```
147
187
148
188
## Changelog
149
189
@@ -161,7 +201,8 @@ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.m
// unnecessary if you're not using `eslint-plugin-prettier`, but required if you are
87
+
"parser":"markdown"
88
+
}
89
+
]
90
+
}
91
+
},
79
92
{
80
93
"files": ["*.mdx"],
81
94
"extends": ["plugin:mdx/overrides"]
@@ -92,6 +105,18 @@ npm i -D eslint-plugin-mdx
92
105
module.exports = {
93
106
extends: ['plugin:mdx/recommended'],
94
107
overrides: [
108
+
{
109
+
files: ['*.md'],
110
+
rules: {
111
+
'prettier/prettier': [
112
+
2,
113
+
{
114
+
// unnecessary if you're not using `eslint-plugin-prettier`, but required if you are
115
+
parser:'markdown',
116
+
},
117
+
],
118
+
},
119
+
},
95
120
Object.assign(
96
121
{
97
122
files: ['*.mdx'],
@@ -143,7 +168,22 @@ Inline JSX like `Inline <Component />` is supported by [MDX][], but rule `react/
143
168
144
169
_possible fixable depends on your remark plugins_:
145
170
146
-
Integration with [remark][] plugins without [remark-lint][], it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig][]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.
171
+
Integration with [remark-lint][] plugins, it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig][]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.
172
+
173
+
## Prettier Integration
174
+
175
+
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]_.
176
+
177
+
```json
178
+
{
179
+
"plugins": [
180
+
"preset-lint-consistent",
181
+
"preset-lint-recommended",
182
+
"preset-lint-markdown-style-guide",
183
+
"preset-prettier"
184
+
]
185
+
}
186
+
```
147
187
148
188
## Changelog
149
189
@@ -161,7 +201,8 @@ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.m
// unnecessary if you're not using `eslint-plugin-prettier`, but required if you are
87
+
"parser":"markdown"
88
+
}
89
+
]
90
+
}
91
+
},
79
92
{
80
93
"files": ["*.mdx"],
81
94
"extends": ["plugin:mdx/overrides"]
@@ -92,6 +105,18 @@ npm i -D eslint-plugin-mdx
92
105
module.exports = {
93
106
extends: ['plugin:mdx/recommended'],
94
107
overrides: [
108
+
{
109
+
files: ['*.md'],
110
+
rules: {
111
+
'prettier/prettier': [
112
+
2,
113
+
{
114
+
// unnecessary if you're not using `eslint-plugin-prettier`, but required if you are
115
+
parser:'markdown',
116
+
},
117
+
],
118
+
},
119
+
},
95
120
Object.assign(
96
121
{
97
122
files: ['*.mdx'],
@@ -143,7 +168,22 @@ Inline JSX like `Inline <Component />` is supported by [MDX][], but rule `react/
143
168
144
169
_possible fixable depends on your remark plugins_:
145
170
146
-
Integration with [remark][] plugins without [remark-lint][], it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig][]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.
171
+
Integration with [remark-lint][] plugins, it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig][]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.
172
+
173
+
## Prettier Integration
174
+
175
+
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]_.
176
+
177
+
```json
178
+
{
179
+
"plugins": [
180
+
"preset-lint-consistent",
181
+
"preset-lint-recommended",
182
+
"preset-lint-markdown-style-guide",
183
+
"preset-prettier"
184
+
]
185
+
}
186
+
```
147
187
148
188
## Changelog
149
189
@@ -161,7 +201,8 @@ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.m
0 commit comments