fix: imporve markdown rules

This commit is contained in:
Anthony Fu 2022-03-09 19:00:11 +08:00
parent 8f51445a67
commit e54ac17e09

View File

@ -13,11 +13,10 @@ module.exports = {
'plugin:markdown/recommended',
],
ignorePatterns: [
'.cache',
'*.min.*',
'CHANGELOG.md',
'dist',
'LICENSE.*',
'LICENSE*',
'public',
'temp',
'!.vitepress',
@ -114,13 +113,16 @@ module.exports = {
// Code blocks in markdown file
files: ['**/*.md/*.*'],
rules: {
'no-unused-vars': 'off',
'no-undef': 'off',
'no-console': 'off',
'no-unused-expressions': 'off',
'import/no-unresolved': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'import/no-unresolved': 'off',
'no-alert': 'off',
'no-console': 'off',
'no-restricted-imports': 'off',
'no-undef': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': 'off',
},
},
],