We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c46189c commit 030ffb6Copy full SHA for 030ffb6
2 files changed
.husky/pre-push
@@ -0,0 +1,15 @@
1
+#!/usr/bin/env sh
2
+. "$(dirname -- "$0")/_/husky.sh"
3
+
4
+cd SortVision || exit 1
5
6
+echo "Running pre-push checks (format, lint, build)..."
7
+pnpm run check:push
8
+RESULT=$?
9
10
+if [ $RESULT -ne 0 ]; then
11
+ echo "Pre-push checks failed. Push aborted."
12
+ exit $RESULT
13
+fi
14
15
+echo "Pre-push checks passed."
SortVision/package.json
@@ -11,6 +11,7 @@
"test:extended": "node tests/quality-assurance.mjs --extended",
"dev": "next dev --turbopack",
"build": "next build",
+ "check:push": "pnpm run format:check && pnpm run lint && pnpm run build",
"start": "next start",
16
"lint": "eslint .",
17
"lint:fix": "eslint . --fix",
0 commit comments