aboutsummaryrefslogtreecommitdiff
path: root/.husky
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-11-03 23:52:24 -0700
committerFuwn <[email protected]>2021-11-03 23:52:24 -0700
commit70f5f5ab700ecdc8d5f65fe9a52e3d37280e718e (patch)
treec4d380afbef990e5c71492da13ce1d2d8d67a191 /.husky
parentfeat(index): add press pack link (diff)
downloadyucky.fun-70f5f5ab700ecdc8d5f65fe9a52e3d37280e718e.tar.xz
yucky.fun-70f5f5ab700ecdc8d5f65fe9a52e3d37280e718e.zip
feat: new
Diffstat (limited to '.husky')
-rw-r--r--.husky/.gitignore1
-rw-r--r--.husky/commit-msg4
-rw-r--r--.husky/pre-commit4
-rw-r--r--.husky/prepare-commit-msg4
4 files changed, 13 insertions, 0 deletions
diff --git a/.husky/.gitignore b/.husky/.gitignore
new file mode 100644
index 0000000..31354ec
--- /dev/null
+++ b/.husky/.gitignore
@@ -0,0 +1 @@
+_
diff --git a/.husky/commit-msg b/.husky/commit-msg
new file mode 100644
index 0000000..0bd658f
--- /dev/null
+++ b/.husky/commit-msg
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+npx --no-install commitlint --edit "$1"
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 0000000..e8a07e5
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+# yarn lint
diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg
new file mode 100644
index 0000000..e30b381
--- /dev/null
+++ b/.husky/prepare-commit-msg
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+# exec < /dev/tty && node_modules/.bin/cz --hook || true