Skip to content

Commit

Permalink
chore: add commitlint as commit-msg hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Pennec committed May 1, 2019
1 parent e588eaa commit e6b6bf7
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .commitlintrc.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
}, },
"husky": { "husky": {
"hooks": { "hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint", "pre-commit": "npm run lint",
"pre-push": "npm test" "pre-push": "npm test"
} }
Expand All @@ -54,6 +55,8 @@
"sitemap": "^2.1.0" "sitemap": "^2.1.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"codecov": "latest", "codecov": "latest",
"eslint": "latest", "eslint": "latest",
"eslint-config-standard": "latest", "eslint-config-standard": "latest",
Expand Down
Loading

0 comments on commit e6b6bf7

Please sign in to comment.