-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
60 lines (56 loc) · 1.46 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
53
54
55
56
57
58
59
60
# Config: https://pre-commit.com/#plugins
# Hooks: https://pre-commit.com/#new-hooks
---
repos:
- repo: local
hooks:
- id: doctoc
name: doctoc
description: This hook updates Table of Contents in markdown files. `brew install node` required.
types:
- markdown
language: system
entry: npx
args:
- doctoc
- --notitle
- --update-only
- id: prettier
name: prettier
description: This hook formats supported file types. `brew install node` required.
language: system
entry: npx
args:
- prettier
- --write
- --check
- --ignore-unknown
- id: markdownlint
name: markdownlint
description: This hook lints markdown files. `brew install node` required.
language: system
types:
- markdown
entry: npx
args:
- markdownlint-cli
- id: gofmt
name: gofmt
description: This hook formats Go files. `brew install go` required.
language: system
types:
- go
entry: gofmt
args:
- -w
- id: golangci-lint
name: golangci-lint
description: This hook lints Go files. `brew install golangci-lint` required.
language: golang
types:
- go
entry: golangci-lint
args:
- run
- --fix
pass_filenames: false