Skip to content

Commit 54871dc

Browse files
feat(CI): local pre-commit hook setup (#67)
* feat(CI): local pre-commit hook setup Installed Husky and CommitLint for local pre-commit linting Signed-off-by: flushthemoney <[email protected]> * fix: add prepare script Signed-off-by: flushthemoney <[email protected]> * fix: move scripts to the top Signed-off-by: flushthemoney <[email protected]> * fix: set ./husky/* as executable Signed-off-by: flushthemoney <[email protected]> * chore: make commit-msg script executable --------- Signed-off-by: flushthemoney <[email protected]> Co-authored-by: Tanmoy Sarkar <[email protected]>
1 parent 74acb30 commit 54871dc

File tree

5 files changed

+2277
-1
lines changed

5 files changed

+2277
-1
lines changed

.commitlintrc.json

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ tarball
99
swiftwave-server
1010
.env
1111
dev.log
12-
.images
12+
.images
13+
.idea
14+
node_modules

.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+
npx commitlint --edit $1

0 commit comments

Comments
 (0)