Files
mal/lefthook.yml
2026-05-24 22:36:41 +02:00

24 lines
664 B
YAML

{
'$schema': 'https://json.schemastore.org/lefthook.json',
'pre-commit':
{
'commands':
{
'prettier': { 'run': 'bunx prettier . --write' },
'eslint': { 'run': 'bunx eslint . --fix' },
},
},
'pre-push':
{
'commands':
{
'go-fmt': { 'run': 'go fmt ./...' },
'go-lint': { 'run': 'golangci-lint run' },
'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' },
},
},
}