Skip to content

Commit 81af295

Browse files
committed
chore: commitlint
1 parent e932875 commit 81af295

File tree

4 files changed

+715
-0
lines changed

4 files changed

+715
-0
lines changed

.husky/commit-msg

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

commitlint.config.cjs

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
@@ -22,6 +22,8 @@
2222
"validate-color": "^2.2.1"
2323
},
2424
"devDependencies": {
25+
"@commitlint/cli": "^17.0.2",
26+
"@commitlint/config-conventional": "^17.0.2",
2527
"@types/express": "^4.17.13",
2628
"@types/jest": "^27.5.2",
2729
"@types/supertest": "^2.0.12",

0 commit comments

Comments
 (0)