Skip to content

Commit 819074c

Browse files
EdwardAngertEdwardAngert
EdwardAngert
authored and
EdwardAngert
committed
add markdownlint-cli2 and rules
1 parent 8df4ea1 commit 819074c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"outputFormatters": [
3+
[ "markdownlint-cli2-formatter-pretty" ]
4+
],
5+
"MD009": true,
6+
"MD010": false,
7+
"MD012": true,
8+
"MD013": false,
9+
"MD022": true,
10+
"MD024": false,
11+
"MD029": false,
12+
"MD031": true,
13+
"MD033": false,
14+
"MD036": false,
15+
"MD041": false,
16+
"MD045": true
17+
}

.github/workflows/ci.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ jobs:
221221
./scripts/check_unstaged.sh
222222
shell: bash
223223

224+
- name: markdownlint-cli2-action
225+
uses: DavidAnson/markdownlint-cli2-action@v18.0.0
226+
with:
227+
config: '.github/actions/markdownlint-cli2-action/.markdownlint.json'
228+
globs: 'docs/**/*.md'
229+
fix: true
230+
224231
gen:
225232
timeout-minutes: 8
226233
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}

0 commit comments

Comments
 (0)