{ "$schema": "https://json.schemastore.org/lefthook.json", "pre-commit": { "commands": { "format": { "glob": "*.{ts,js,tsx,jsx,css,json,html}", "run": "bunx oxfmt {staged_files}", }, "lint:ts": { "glob": "*.{ts,js,tsx,jsx}", "run": "bunx oxlint --ignore-path .oxlintignore {staged_files} --max-warnings 0 --fix --tsconfig ./tsconfig.json --type-aware", }, "go-fmt": { "glob": "*.go", "run": "go fmt ./..." }, "go-lint": { "glob": "*.go", "run": "bun run lint:go" }, "go-test": { "glob": "*.go", "run": "go test ./..." }, "ts-typecheck": { "glob": "*.ts", "run": "bunx tsc -p tsconfig.json --noEmit" }, "build-assets": { "glob": "*.{ts,css}", "run": "bun run build:assets" }, "go-build": { "glob": "*.go", "run": "go build -o server ./cmd/server" }, }, }, }