Files
mal/lefthook.yml
2026-06-08 08:32:08 +02:00

18 lines
596 B
YAML

{
'$schema': 'https://json.schemastore.org/lefthook.json',
'pre-commit':
{
'commands':
{
'prettier': { 'run': 'bunx prettier . --write' },
'eslint': { 'run': 'bunx eslint . --fix' },
'go-fmt': { 'run': 'go fmt ./...' },
'go-lint': { 'run': 'bun run lint:go' },
'go-test': { 'run': 'go test ./...' },
'ts-typecheck': { 'run': 'bunx tsc -p tsconfig.json --noEmit' },
'build-assets': { 'run': 'bun run build:assets' },
'go-build': { 'run': 'go build -o server ./cmd/server' },
},
},
}