Skip to content

Commit 536c885

Browse files
canisminor1990arvinxx
andauthoredMar 10, 2024
🔧 chore: add mdx lint (lobehub#1475)
* 🔧 chore: Add mdx lint * 📝 docs: Update docs * 📝 docs: update docs --------- Co-authored-by: arvinxx <arvinx@foxmail.com>
1 parent 219a0e1 commit 536c885

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2328
-3556
lines changed
 

‎.eslintrc.js

+16
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,20 @@ config.rules['unicorn/catch-error-name'] = 0;
1818
config.rules['unicorn/no-array-for-each'] = 0;
1919
config.rules['unicorn/prefer-number-properties'] = 0;
2020

21+
config.overrides = [
22+
{
23+
extends: ['plugin:mdx/recommended'],
24+
files: ['*.mdx'],
25+
rules: {
26+
'@typescript-eslint/no-unused-vars': 1,
27+
'no-undef': 0,
28+
'react/jsx-no-undef': 0,
29+
'react/no-unescaped-entities': 0,
30+
},
31+
settings: {
32+
'mdx/code-blocks': false,
33+
},
34+
},
35+
];
36+
2137
module.exports = config;

0 commit comments

Comments
 (0)
Please sign in to comment.