Skip to content

Commit 353daf7

Browse files
committed
➕ add husky hooks
1 parent 2c10571 commit 353daf7

File tree

3 files changed

+324
-0
lines changed

3 files changed

+324
-0
lines changed

.husky/pre-commit

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
export FORCE_COLOR=1
5+
6+
echo '🎨 Formating and checking staged files before committing!'
7+
8+
npx lint-staged --concurrent false ||
9+
(
10+
echo '❌ Ooops! Formating and checking process has failed!';
11+
false;
12+
)
13+
14+
echo '✅ Formating and checking process has been successfully completed!';

0 commit comments

Comments
 (0)