-
Notifications
You must be signed in to change notification settings - Fork 45
/
.pre-commit-config.yaml
39 lines (36 loc) · 1.09 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-toml
- id: end-of-file-fixer
# Files in this directory are generated by
# https://github.com/hashicorp/terraform-plugin-docs
exclude: ^docs/
- id: trailing-whitespace
# Files in this directory are generated by
# https://github.com/hashicorp/terraform-plugin-docs
exclude: ^docs/
- id: check-merge-conflict
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
- id: go-vet
- id: go-mod-tidy
- repo: https://github.com/golangci/golangci-lint
rev: v1.42.1
hooks:
- id: golangci-lint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1
hooks:
- id: prettier
types_or: [yaml, toml, markdown]
# Files in this directory are generated by
# https://github.com/hashicorp/terraform-plugin-docs
exclude: ^docs/
additional_dependencies:
- prettier@2.2.0
- prettier-plugin-toml@0.3.1