fix: run linter at package level, not file level
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user