Add golangci-lint to lefthook workflow

This commit is contained in:
Eli Ribble 2026-05-01 17:36:32 +00:00
parent bab3200b6c
commit a6ce0b7e67
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -34,6 +34,7 @@
pkgs.esbuild
pkgs.go
pkgs.go-jet
pkgs.golangci-lint
pkgs.goose
pkgs.gotools
pkgs.lefthook

View file

@ -12,6 +12,10 @@ pre-commit:
glob: "*.go"
run: gofmt -w {staged_files}
stage_fixed: true
lint:
glob: "*.go"
run: golangci-lint run --fix
stage_fixed: true
prettier:
glob: "*.{html,js,ts,vue,scss}"
run: prettier -w {staged_files}