{
  "$schema": "https://json.schemastore.org/lefthook.json",
  "pre-commit":
    {
      "commands":
        {
          "format": { "run": "bunx oxfmt" },
          "lint:ts":
            { "run": "bunx oxlint --ignore-path .oxlintignore static --max-warnings 0 --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" },
        },
    },
}
