Files
frontend-svelte/lefthook.yml
T

33 lines
659 B
YAML

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:
test-unit:
run: yarn test:unit
test-component:
run: yarn test:component
type-check:
run: yarn tsc --noEmit
svelte-check:
run: yarn check --threshold warning
format-check:
glob: "*.{ts,js,svelte,json,md}"
run: yarn dprint check {push_files}
lint-full:
glob: "*.{ts,js,svelte}"
run: yarn oxlint {push_files}