We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da2ce7 commit 1b0f966Copy full SHA for 1b0f966
.husky/pre-commit
@@ -1,4 +1,3 @@
1
#!/bin/sh
2
. "$(dirname "$0")/_/husky.sh"
3
-
4
bash bin/check-pre-commit
bin/check-pre-commit
@@ -1,6 +1,7 @@
#!/bin/bash
[[ $(bin/count-invalid-slugs) == "0" ]] && \
+[ ! -d node_modules/ ] && echo "⚠️ You need to install node_modules first" && exit 1; \
5
yarn lint-staged || \
6
(echo "💔 Slug error(s):" && bin/list-invalid-slugs \
7
echo "⚠️ You must fix slugs in 'menu/navigation.json' before commit"; exit 1)
0 commit comments