Skip to content

Commit 9f1024b

Browse files
BillWagnerjskeet
authored andcommitted
Update markdown lint
Update to the latest markdown lint configuration and such.
1 parent 6b7d4af commit 9f1024b

3 files changed

Lines changed: 31 additions & 24 deletions

File tree

.github/workflows/markdownlint.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ jobs:
2929

3030
steps:
3131
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
32-
- name: Use Node.js
33-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
32+
- uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101 # v22.0.0
3433
with:
35-
node-version: 16.x
36-
- name: Run Markdownlint
37-
run: |
38-
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
39-
npm i -g markdownlint-cli
40-
markdownlint "standard/*.md"
34+
config: ".markdownlint-cli2.jsonc"
35+
globs: "/standard/*.md"

.markdownlint-cli2.jsonc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"config": {
3+
"default": true,
4+
"MD013": false,
5+
"MD033": false,
6+
"MD034": false,
7+
"MD036": false,
8+
"MD046": {
9+
"style": "fenced"
10+
},
11+
"MD060": false,
12+
"proper-names": {
13+
"code_blocks": false,
14+
"names": [
15+
]
16+
}
17+
},
18+
"ignores": [
19+
".github/",
20+
"standard/README.md",
21+
"admin/*.md",
22+
"tools/**/*.md",
23+
"README.md",
24+
"CONTRIBUTING.md",
25+
"CODE_OF_CONDUCT.md"
26+
]
27+
}
28+

.markdownlint.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)