Skip to content

Commit 3ede5db

Browse files
committed
♻️ feat: add pre-commit hook for linting with lint-staged
1 parent 770c409 commit 3ede5db

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.husky/_/pre-commit

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
if [ "$SKIP_SIMPLE_GIT_HOOKS" = "1" ]; then
4+
echo "[INFO] SKIP_SIMPLE_GIT_HOOKS is set to 1, skipping hook."
5+
exit 0
6+
fi
7+
8+
if [ -f "$SIMPLE_GIT_HOOKS_RC" ]; then
9+
. "$SIMPLE_GIT_HOOKS_RC"
10+
fi
11+
12+
npx lint-staged

0 commit comments

Comments
 (0)