diff --git a/lefthook.yml b/lefthook.yml index fb9d41a8..d2eac6ec 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -14,7 +14,7 @@ pre-commit: stage_fixed: true golint: glob: "*.go" - run: golangci-lint run --fix {staged_files} + run: golangci-lint run --fix --new-from-rev=HEAD stage_fixed: true prettier: glob: "*.{html,js,ts,vue,scss}"