product page and linter
This commit is contained in:
13
.husky/hooks/pre-commit
Executable file
13
.husky/hooks/pre-commit
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
|
||||
|
||||
command_name_bun="bun"
|
||||
if ! command -v "$command_name_bun" &> /dev/null; then
|
||||
echo "Command '$command_name_bun' not found. Installing..."
|
||||
npm install -g "$command_name_bun"@latest
|
||||
else
|
||||
"$command_name_bun" lint || exit 1 && cd ..
|
||||
fi
|
||||
|
Reference in New Issue
Block a user