Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

chore(ui): add pre-commit

robinb271d4de45ea
diff --git a/.gitignore b/.gitignore
index 84af0c17..d4063a95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,5 @@
Thumbs*.db
tmp
vendor/
-.husky
/answer-data/
/answer
diff --git a/.husky/.gitignore b/.husky/.gitignore
new file mode 100644
index 00000000..31354ec1
--- /dev/null
+++ b/.husky/.gitignore
@@ -0,0 +1 @@
+_
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 00000000..1e22558b
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+cd ui && npm run pre-commit