fix: run linter at package level, not file level

This commit is contained in:
2026-06-11 12:05:38 +02:00
parent 3ade952653
commit 5f346d8dec

View File

@@ -16,7 +16,12 @@
"bunx oxlint --ignore-path .oxlintignore {staged_files} --max-warnings 0 --fix --tsconfig ./tsconfig.json --type-aware",
},
"go-fmt": { "glob": "*.go", "run": "go fmt {staged_files}" },
"go-lint": { "glob": "*.go", "run": "golangci-lint run {staged_files}" },
"go-lint":
{
"glob": "*.go",
"run":
'printf "%s\n" {staged_files} | xargs -n1 dirname | sort -u | xargs -I{} golangci-lint run ./{}',
},
"go-test":
{
"glob": "*.go",