Skip to content

Commit b292f40

Browse files
committed
chore: use commitlint
1 parent 16b52cc commit b292f40

File tree

4 files changed

+568
-28
lines changed

4 files changed

+568
-28
lines changed

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

commitlint.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const Configuration = {
2+
extends: ["@commitlint/config-conventional"],
3+
};
4+
5+
export default Configuration;

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"vscode-get-config": "^0.4.0"
4747
},
4848
"devDependencies": {
49+
"@commitlint/cli": "^19.8.0",
50+
"@commitlint/config-conventional": "^19.8.0",
4951
"@eslint/js": "^9.24.0",
5052
"@total-typescript/tsconfig": "^1.0.4",
5153
"@types/node": "^20.14.2",

0 commit comments

Comments
 (0)