Skip to content

Commit 332f84d

Browse files
nschonniSEWeiTung
authored andcommitted
chore: Add Markdownlint (#2354)
1. Add Markdownlint checking for Markdown files 2. Add .markdownlint.json to disable all non-passing rules to start 3. Add markdownlint run to the test:lint target
1 parent f9d4cd0 commit 332f84d

File tree

3 files changed

+154
-1
lines changed

3 files changed

+154
-1
lines changed

.markdownlint.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"default": true,
3+
"MD001": false,
4+
"MD004": false,
5+
"MD005": false,
6+
"MD006": false,
7+
"MD007": false,
8+
"MD009": false,
9+
"MD010": false,
10+
"MD012": false,
11+
"MD013": false,
12+
"MD014": false,
13+
"MD018": false,
14+
"MD019": false,
15+
"MD022": false,
16+
"MD024": false,
17+
"MD025": false,
18+
"MD026": false,
19+
"MD027": false,
20+
"MD028": false,
21+
"MD029": false,
22+
"MD030": false,
23+
"MD031": false,
24+
"MD032": false,
25+
"MD033": false,
26+
"MD034": false,
27+
"MD035": false,
28+
"MD036": false,
29+
"MD038": false,
30+
"MD039": false,
31+
"MD040": false,
32+
"MD041": false,
33+
"MD042": false,
34+
"MD046": false,
35+
"MD047": false
36+
}

package-lock.json

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"load-schedule": "curl -sS https://raw.githubusercontent.com/nodejs/Release/master/schedule.json -o source/schedule.json",
1515
"start": "npm run serve",
1616
"test": "npm run test:lint && npm run test:unit && npm run test:smoke",
17-
"test:lint": "standard --fix && htmllint **/*.hbs && stylint layouts/css",
17+
"test:lint": "standard --fix && htmllint **/*.hbs && stylint layouts/css && markdownlint \"**/*.md\" -i \"node_modules/\"",
1818
"test:unit": "tape tests/**/*.test.js | faucet",
1919
"test:smoke": "tape tests/*.smoketest.js | faucet"
2020
},
@@ -64,6 +64,7 @@
6464
"devDependencies": {
6565
"faucet": "^0.0.1",
6666
"htmllint-cli": "^0.0.6",
67+
"markdownlint-cli": "^0.17.0",
6768
"nock": "^10.0.6",
6869
"pre-commit": "^1.2.2",
6970
"proxyquire": "^2.0.1",

0 commit comments

Comments
 (0)