Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
feat:add commitlint and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
myfjdthink committed Oct 14, 2019
1 parent 1a8773c commit 1117a76
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -51,13 +51,20 @@
"@types/node": "^12.7.8",
"@types/supertest": "^2.0.8",
"chai": "^4.2.0",
"husky": "^3.0.9",
"koa": "^2.8.1",
"mocha": "^6.2.0",
"supertest": "^4.0.2",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"tslint-config-klg": "^1.0.5",
"tslint-config-klg": "^2.0.0",
"typescript": "^3.6.3",
"webstorm-disable-index": "^1.2.0"
},
"husky": {
"hooks": {
"pre-commit": "lint",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}

0 comments on commit 1117a76

Please sign in to comment.