feat: mvp
This commit is contained in:
9
.husky/commit-msg
Normal file
9
.husky/commit-msg
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
if ! head -1 "$1" | grep -qE "^(feat|fix|chore|docs|test|style|refactor|perf|build|ci|revert)(\(.+?\))?: .{1,}$"; then
|
||||
echo "Aborting commit. Your commit message is invalid. Please use conventional commits" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! head -1 "$1" | grep -qE "^.{1,88}$"; then
|
||||
echo "Aborting commit. Your commit message is too long." >&2
|
||||
exit 1
|
||||
fi
|
||||
2
.husky/pre-commit
Normal file
2
.husky/pre-commit
Normal file
@@ -0,0 +1,2 @@
|
||||
pnpm run format
|
||||
pnpm run lint
|
||||
Reference in New Issue
Block a user