Files
frontend-svelte/lefthook.yml

27 lines
480 B
YAML
Raw Normal View History

pre-commit:
parallel: true
commands:
format:
glob: "*.{ts,js,svelte,json,md}"
run: yarn dprint fmt {staged_files}
stage_fixed: true
lint:
glob: "*.{ts,js,svelte}"
run: yarn oxlint {staged_files}
pre-push:
parallel: true
commands:
type-check:
2025-12-30 11:15:32 +03:00
run: yarn tsc --noEmit
svelte-check:
2025-12-30 11:15:32 +03:00
run: yarn svelte-check --threshold warning
format-check:
run: yarn dprint check
lint-full:
run: yarn oxlint .