chore: fix markdown file automatically (#41)

* update

* update
This commit is contained in:
fw_qaq 2022-11-10 12:51:20 +08:00 committed by GitHub
parent 2b1d33a5db
commit aa26be4186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,4 @@
{
"**/*.{mjs,css,json,prettierrc,lintstagedrc}": ["prettier --write"]
"**/*.{mjs,css,json,prettierrc,lintstagedrc}": ["prettier --write"],
"./docs/*.md": ["markdownlint-cli --fix ./docs"]
}

8
.markdownlint.json Normal file
View File

@ -0,0 +1,8 @@
{
"MD003": false,
"MD013": false,
"MD014": false,
"MD024": false,
"MD033": false,
"MD040": false
}

View File

@ -10,7 +10,8 @@
"prepare": "husky install",
"build": "node scripts/build.mjs",
"start": "node scripts/watch.mjs",
"prettier": "prettier --write '**/*.{mjs,css,json,prettierrc,lintstagedrc}'"
"prettier": "prettier --write '**/*.{mjs,css,json,prettierrc,lintstagedrc}'",
"markdownlint": "markdownlint-cli --fix ./docs"
},
"repository": {
"type": "git",
@ -26,6 +27,7 @@
"fs-extra": "^10.1.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"markdownlint-cli": "^0.32.2",
"prettier": "^2.7.1",
"recursive-readdir-files": "^2.3.0",
"rehype-autolink-headings": "^6.1.1",