We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bd544 commit 359c84eCopy full SHA for 359c84e
.husky/pre-commit
@@ -1 +1,8 @@
1
+branch="$(git rev-parse --abbrev-ref HEAD)"
2
+
3
+if [ "$branch" = "main" ]; then
4
+ echo "You can't push directly to main - please check out a branch."
5
+ exit 1
6
+fi
7
8
pnpx lint-staged
.husky/pre-push
@@ -0,0 +1,8 @@
+pnpm check-types
0 commit comments