mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 19:04:02 +00:00
27 lines
574 B
YAML
27 lines
574 B
YAML
# lefthook.yml
|
|
|
|
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
db-migration-manifest:
|
|
glob: 'packages/db/drizzle/*.sql'
|
|
run: bun run db:migrations:manifest && git add packages/db/drizzle-checksums.json
|
|
format:
|
|
glob: '*.{ts,tsx,js,jsx,json,md}'
|
|
run: bun run format:check
|
|
lint:
|
|
glob: '*.{ts,tsx,js,jsx}'
|
|
run: bun run lint
|
|
|
|
pre-push:
|
|
parallel: true
|
|
commands:
|
|
db-migrations:
|
|
run: bun run db:migrations:check
|
|
typecheck:
|
|
run: bun run typecheck
|
|
test:
|
|
run: bun run test
|
|
build:
|
|
run: bun run build
|