chore: apply prettier on the entire project

This commit is contained in:
jubnl
2026-05-25 21:59:42 +02:00
parent c130ed41be
commit 6bcdfbc34b
488 changed files with 82986 additions and 45830 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)"
GIT_HOOKS_DIR="$(git rev-parse --show-toplevel)/.git/hooks"
cp "$HOOKS_DIR/pre-commit" "$GIT_HOOKS_DIR/pre-commit"
# cp "$HOOKS_DIR/pre-push" "$GIT_HOOKS_DIR/pre-push"
chmod +x "$GIT_HOOKS_DIR/pre-commit" "$GIT_HOOKS_DIR/pre-push"
# chmod +x "$GIT_HOOKS_DIR/pre-push"
echo "Git hooks installed."
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
echo "Running format..."
npm run format
# Re-stage files that format modified so the commit includes the formatted output.
git diff --name-only | while read -r file; do
git add "$file"
done
echo "[SKIPPED] Running lint..."
# npm run lint
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
echo "Running build..."
npm run build