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 8cca6f2 commit b8389c3Copy full SHA for b8389c3
.husky/_/husky.sh
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env sh
2
+if [ -z "$husky_skip_init" ]; then
3
+ debug () {
4
+ if [ "$HUSKY_DEBUG" = "1" ]; then
5
+ echo "husky (debug) - $1"
6
+ fi
7
+ }
8
+
9
+ readonly hook_name="$(basename -- "$0")"
10
+ debug "starting $hook_name..."
11
12
+ if [ "$HUSKY" = "0" ]; then
13
+ debug "HUSKY env variable is set to 0, skipping hook"
14
+ exit 0
15
16
17
+ if [ -f ~/.huskyrc ]; then
18
+ debug "sourcing ~/.huskyrc"
19
+ . ~/.huskyrc
20
21
22
+ readonly husky_skip_init=1
23
+ export husky_skip_init
24
+ sh -e "$0" "$@"
25
+fi
.husky/pre-commit
@@ -0,0 +1,4 @@
+. "$(dirname -- "$0")/_/husky.sh"
+cd typescript && npx lint-staged
typescript/.husky/pre-commit
0 commit comments