Skip to content

Commit c950a95

Browse files
authored
chore: introduce markdown lint (#137)
* add markdown lint configs * add markdownlint in dev deps * add linting script
1 parent 08bd9ae commit c950a95

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.markdownlint-cli2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gitignore: true

.markdownlint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
line-length:
2+
code_blocks: false # caught by prettier
3+
tables: false
4+
no-duplicate-heading:
5+
siblings_only: true
6+
no-inline-html: false
7+
first-line-h1: false # could be in front matter

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"name": "sustechapplication",
33
"scripts": {
4+
"lint": "markdownlint-cli2 \"**.md\"",
5+
"lint:fix": "bun run lint -- --fix",
46
"serve": "docsify serve docs",
57
"sort": "bunx sort-package-json"
68
},
79
"dependencies": {
810
"docsify-cli": "^4.4.4"
911
},
1012
"devDependencies": {
13+
"markdownlint-cli2": "^0.17.2",
1114
"prettier": "^3.5.2"
1215
}
1316
}

0 commit comments

Comments
 (0)