Skip to content

Commit bdb631b

Browse files
committed
chore: setup gitlint
1 parent 9d0be7f commit bdb631b

File tree

6 files changed

+927
-0
lines changed

6 files changed

+927
-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 commitlint --edit ${1}

commitlint.config.ts

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"prepare": "husky install"
1717
},
1818
"devDependencies": {
19+
"@commitlint/types": "^19.8.0",
20+
"@commitlint/cli": "^19.8.0",
21+
"@commitlint/config-conventional": "^19.8.0",
1922
"eslint": "^8.57.0",
2023
"husky": "^8.0.3",
2124
"lint-staged": "^15.2.7",

0 commit comments

Comments
 (0)