Skip to content

Commit

Permalink
chore: add commitlint and commitizen configuration (#14)
Browse files Browse the repository at this point in the history
* chore: add commitizen configuration

* feat: add commitlint
  • Loading branch information
mfeltscher authored Oct 16, 2023
1 parent 3286b0f commit 737763c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run commitlint ${1}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,20 @@
"eslint": "^7.0.0 || ^8.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.0",
"@smartive/prettier-config": "^3.0.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^8.0.3",
"prettier": ">=2.0.0 <4"
},
"scripts": {
"commitlint": "commitlint --edit",
"prepare": "husky install"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 737763c

Please sign in to comment.