Skip to content

Commit

Permalink
🔧 chore: add mdx lint (lobehub#1475)
Browse files Browse the repository at this point in the history
* 🔧 chore: Add mdx lint

* 📝 docs: Update docs

* 📝 docs: update docs

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
  • Loading branch information
canisminor1990 and arvinxx authored Mar 10, 2024
1 parent 219a0e1 commit 536c885
Show file tree
Hide file tree
Showing 72 changed files with 2,328 additions and 3,556 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,20 @@ config.rules['unicorn/catch-error-name'] = 0;
config.rules['unicorn/no-array-for-each'] = 0;
config.rules['unicorn/prefer-number-properties'] = 0;

config.overrides = [
{
extends: ['plugin:mdx/recommended'],
files: ['*.mdx'],
rules: {
'@typescript-eslint/no-unused-vars': 1,
'no-undef': 0,
'react/jsx-no-undef': 0,
'react/no-unescaped-entities': 0,
},
settings: {
'mdx/code-blocks': false,
},
},
];

module.exports = config;
Loading

0 comments on commit 536c885

Please sign in to comment.