Skip to content

Commit 0066b89

Browse files
committed
add precommit hooks for lint-md
1 parent e0caf77 commit 0066b89

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules
2+
/yarn.lock

package.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "weekly",
3+
"version": "1.0.0",
4+
"description": "前端界的好文精读,每周更新!",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/dt-fe/weekly.git"
12+
},
13+
"author": "",
14+
"license": "ISC",
15+
"bugs": {
16+
"url": "https://github.com/dt-fe/weekly/issues"
17+
},
18+
"homepage": "https://github.com/dt-fe/weekly#readme",
19+
"dependencies": {
20+
"husky": "^3.0.4",
21+
"lint-md-cli": "^0.1.1"
22+
},
23+
"husky": {
24+
"hooks": {
25+
"pre-commit": "npx lint-md ./"
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)