Skip to content

Commit

Permalink
add precommit hooks for lint-md
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Aug 21, 2019
1 parent e0caf77 commit 0066b89
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/yarn.lock
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "weekly",
"version": "1.0.0",
"description": "前端界的好文精读,每周更新!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dt-fe/weekly.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/dt-fe/weekly/issues"
},
"homepage": "https://github.com/dt-fe/weekly#readme",
"dependencies": {
"husky": "^3.0.4",
"lint-md-cli": "^0.1.1"
},
"husky": {
"hooks": {
"pre-commit": "npx lint-md ./"
}
}
}

0 comments on commit 0066b89

Please sign in to comment.