Skip to content

Commit e9a7dc8

Browse files
committed
ci: setup husky & lint-staged & commitlint
1 parent 5c7e31c commit e9a7dc8

File tree

5 files changed

+2948
-53
lines changed

5 files changed

+2948
-53
lines changed

.commitlintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
extends: ["@commitlint/config-conventional"]
3+
}

.husky/commit-msg

+4
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 ""

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run pre-commit

0 commit comments

Comments
 (0)