-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
52 lines (48 loc) · 1.41 KB
/
.pre-commit-config.yaml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
# - id: check-added-large-files
# args: [--maxkb=1000]
# - repo: https://github.com/golangci/golangci-lint
# rev: v1.54.2
# hooks:
# - id: golangci-lint
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
# - id: go-vet
# files: \.go$
# exclude: ^datavinci/
- id: go-imports
- id: go-cyclo
# args: [-over=15]
- id: validate-toml
- id: no-go-testing
# - id: go-critic
# args: [--disable=sloppyTypeAssert]
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v3.0.3
# hooks:
# - id: prettier
# types_or: [javascript, jsx, ts, tsx, json]
# files: ^web/
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: v8.49.0
# hooks:
# - id: eslint
# files: ^web/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx in web folder
# types: [file]
# additional_dependencies:
# - eslint@9.6.0
# - typescript@5.2.2
# - "@typescript-eslint/parser@6.7.0"
# - "@typescript-eslint/eslint-plugin@6.7.0"