-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
25 lines (25 loc) · 874 Bytes
/
.pre-commit-config.yaml
File metadata and controls
25 lines (25 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
repos:
- repo: local
hooks:
- id: biome-check
name: biome check
entry: pnpm biome check --no-errors-on-unmatched --files-ignore-unknown=true
language: system
types_or: [javascript, jsx, ts, tsx, json, css]
- id: biome-format
name: biome format
entry: pnpm biome format --no-errors-on-unmatched --files-ignore-unknown=true
language: system
types_or: [javascript, jsx, ts, tsx, json, css]
- id: golangci-lint
name: golangci-lint
entry: bash -c 'cd server && golangci-lint run --new-from-rev=HEAD'
language: system
files: '\.go$'
pass_filenames: false
- id: go-mod-tidy
name: go mod tidy
entry: bash -c 'cd server && go mod tidy -diff'
language: system
files: '(go\.mod|go\.sum)$'
pass_filenames: false