Skip to content

Commit f626b54

Browse files
committed
feat: use eslint-plugin-mdx for md/mdx files
1 parent 1a0529c commit f626b54

File tree

6 files changed

+1077
-136
lines changed

6 files changed

+1077
-136
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = antfu(
6666
'eslint:recommended',
6767
// Other extends...
6868
],
69-
})
69+
}),
7070

7171
// Other flat configs...
7272
)
@@ -189,7 +189,7 @@ export default antfu({
189189
ignores: [
190190
'./fixtures',
191191
// ...globs
192-
]
192+
],
193193
})
194194
```
195195

@@ -235,8 +235,6 @@ import {
235235
jsonc,
236236
markdown,
237237
node,
238-
sortPackageJson,
239-
sortTsconfig,
240238
stylistic,
241239
typescript,
242240
unicorn,
@@ -311,7 +309,7 @@ export default antfu(
311309
rules: {
312310
'style/semi': ['error', 'never'],
313311
},
314-
}
312+
},
315313
)
316314
```
317315

@@ -331,7 +329,7 @@ export default antfu({
331329
},
332330
yaml: {},
333331
// ...
334-
}
332+
},
335333
})
336334
```
337335

@@ -372,8 +370,8 @@ export default antfu({
372370
* Supports Prettier and dprint
373371
* By default uses Prettier
374372
*/
375-
markdown: 'prettier'
376-
}
373+
markdown: 'prettier',
374+
},
377375
})
378376
```
379377

@@ -435,7 +433,7 @@ It's recommended to opt-in on each file individually using [configuration commen
435433

436434
```js
437435
/* eslint perfectionist/sort-objects: "error" */
438-
const objectWantedToSort = {
436+
export const objectWantedToSort = {
439437
a: 2,
440438
b: 1,
441439
c: 3,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"eslint-plugin-i": "^2.29.0",
7979
"eslint-plugin-jsdoc": "^46.9.0",
8080
"eslint-plugin-jsonc": "^2.10.0",
81-
"eslint-plugin-markdown": "^3.0.1",
81+
"eslint-plugin-mdx": "^2.2.0",
8282
"eslint-plugin-n": "^16.3.1",
8383
"eslint-plugin-no-only-tests": "^3.1.0",
8484
"eslint-plugin-perfectionist": "^2.5.0",

0 commit comments

Comments
 (0)