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