Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ui/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Throw warnings if npm is not installed
if ! command -v npm >/dev/null 2>&1; then
echo "Error: npm is not installed. Please install npm to run lint-staged."
echo "You can use 'git commit --no-verify' to skip pre-commit checks (not recommended)."
exit 1
fi

npx lint-staged