Skip to content

Commit a99183c

Browse files
committed
fix: disable codeblocks checks for md and mdx
1 parent 807b534 commit a99183c

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

configs/md.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,7 @@ import * as mdx from 'eslint-plugin-mdx';
22

33
/** @type {Linter.Config[]} */
44
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,
266
];
277

288
export default mdConfig;

0 commit comments

Comments
 (0)