Skip to content

Commit 9e6ec7c

Browse files
committed
Add markdown linting
1 parent d4da50e commit 9e6ec7c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
"negate": "^1.0.0",
4242
"nyc": "^11.0.0",
4343
"rehype-parse": "^4.0.0",
44+
"remark-cli": "^4.0.0",
4445
"remark-parse": "^4.0.0",
46+
"remark-preset-wooorm": "^3.0.0",
4547
"remark-stringify": "^4.0.0",
4648
"tape": "^4.6.3",
4749
"unified": "^6.1.0",
@@ -50,10 +52,11 @@
5052
"xo": "^0.18.1"
5153
},
5254
"scripts": {
55+
"build": "remark *.md -qfo",
5356
"lint": "xo",
5457
"test-api": "node tests",
5558
"test-coverage": "nyc --reporter lcov tape tests/index.js",
56-
"test": "npm run lint && npm run test-coverage"
59+
"test": "npm run build && npm run lint && npm run test-coverage"
5760
},
5861
"nyc": {
5962
"check-coverage": true,
@@ -67,5 +70,10 @@
6770
"rules": {
6871
"no-multi-assign": "off"
6972
}
73+
},
74+
"remarkConfig": {
75+
"plugins": [
76+
"preset-wooorm"
77+
]
7078
}
7179
}

0 commit comments

Comments
 (0)