Skip to content

Commit 3d51e30

Browse files
authored
feat(husky): init commitlint (#23)
1 parent f4aaf20 commit 3d51e30

File tree

4 files changed

+411
-13
lines changed

4 files changed

+411
-13
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "${1}"

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: [ '@commitlint/config-conventional' ]
3+
};

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"devDependencies": {
3232
"@babel/core": "^7.17.9",
3333
"@capacitor/cli": "3.5.1",
34+
"@commitlint/cli": "^16.2.4",
35+
"@commitlint/config-conventional": "^16.2.4",
3436
"@ionic/eslint-config": "^0.3.0",
3537
"@ionic/prettier-config": "^2.0.0",
3638
"@types/jest": "^27.4.1",

0 commit comments

Comments
 (0)