Skip to content

Commit

Permalink
add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetaka Okamoto committed Jun 11, 2020
1 parent b78c59c commit a2f3b64
Show file tree
Hide file tree
Showing 4 changed files with 839 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const tasks = arr => arr.join(' && ')
module.exports = {
'scripts': {
'pre-commit': tasks([
"lint-staged",
]),
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
}
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
Loading

0 comments on commit a2f3b64

Please # to comment.