feat: add markdown plugin
This commit is contained in:
@@ -10,6 +10,16 @@ module.exports = {
|
||||
'plugin:eslint-comments/recommended',
|
||||
'plugin:jsonc/recommended-with-jsonc',
|
||||
'plugin:yml/standard',
|
||||
'plugin:markdown/recommended',
|
||||
],
|
||||
ignorePatterns: [
|
||||
'.cache',
|
||||
'*.min.*',
|
||||
'CHANGELOG.md',
|
||||
'dist',
|
||||
'LICENSE.*',
|
||||
'public',
|
||||
'temp',
|
||||
],
|
||||
plugins: [
|
||||
'html',
|
||||
@@ -88,7 +98,7 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['scripts/**/*.*'],
|
||||
files: ['scripts/**/*.*', 'cli.*'],
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
},
|
||||
@@ -99,6 +109,20 @@ module.exports = {
|
||||
'no-unused-expressions': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['*.md'],
|
||||
parser: 'markdown-eslint-parser',
|
||||
},
|
||||
{
|
||||
// Code blocks in markdown file
|
||||
files: ['**/*.md/*.*'],
|
||||
rules: {
|
||||
'no-unused-vars': 'off',
|
||||
'no-undef': 'off',
|
||||
'no-unused-expressions': 'off',
|
||||
'import/no-unresolved': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
rules: {
|
||||
// import
|
||||
|
@@ -21,6 +21,7 @@
|
||||
"eslint-plugin-html": "^6.2.0",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jsonc": "^2.2.1",
|
||||
"eslint-plugin-markdown": "^2.2.1",
|
||||
"eslint-plugin-n": "^15.0.1",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
"eslint-plugin-unicorn": "^41.0.0",
|
||||
|
Reference in New Issue
Block a user