File tree 1 file changed +1
-21
lines changed
1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,7 @@ import * as mdx from 'eslint-plugin-mdx';
2
2
3
3
/** @type {Linter.Config[] } */
4
4
const mdConfig = [
5
- {
6
- ...mdx . flat ,
7
- // Optional, if you want to lint code blocks at the same
8
- processor : mdx . createRemarkProcessor ( {
9
- lintCodeBlocks : true ,
10
- // Optional, if you want to disable language mapper, set it to `false`
11
- // if you want to override the default language mapper inside, you can provide your own
12
- languageMapper : { } ,
13
- } ) ,
14
- } ,
15
- {
16
- ...mdx . flatCodeBlocks ,
17
- rules : {
18
- ...mdx . flatCodeBlocks . rules ,
19
- // If you want to override some rules for code blocks
20
- 'no-var' : 'error' ,
21
- 'prefer-const' : 'error' ,
22
- 'import/no-unresolved' : 'off' ,
23
- 'import/no-anonymous-default-export' : 'off' ,
24
- } ,
25
- } ,
5
+ mdx . flat ,
26
6
] ;
27
7
28
8
export default mdConfig ;
You can’t perform that action at this time.
0 commit comments