🔧 chore: add svelte-check to pre-commit hooks

Add automatic svelte-check validation for staged Svelte files:
- Create svelte-check-staged.sh that runs on affected web apps only
- Create build-check-staged.sh for production build validation
- Integrate svelte-check into pre-commit hook
- Add optional pre-push hook for full build checks
- Update lint-staged config to handle Svelte files separately
This commit is contained in:
Wuesteon 2025-12-15 17:53:52 +01:00
parent 9238ff72a3
commit b949037fa5
6 changed files with 195 additions and 1 deletions

View file

@ -1,2 +1,5 @@
pnpm exec lint-staged
pnpm run type-check
# Run svelte-check on staged web apps (catches a11y, imports, Svelte 5 issues)
./scripts/svelte-check-staged.sh

3
.husky/pre-push Executable file
View file

@ -0,0 +1,3 @@
# Optional: Run production build check before push
# Uncomment to enable (slower but catches all CI issues)
# ./scripts/build-check-staged.sh