-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
38 lines (38 loc) · 1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: README.md
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-fmt
- id: no-go-testing
# - id: golangci-lint
# exclude: '^tmp/'
# - id: go-unit-tests
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.25.0"
hooks:
- id: eslint
additional_dependencies:
- eslint-config-next@12.1.6
files: ^ui/
types_or: [ts, tsx]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
files: ^ui/
types_or: [javascript, jsx, ts, tsx, json, css, scss, markdown]
additional_dependencies:
- prettier
- prettier-plugin-svelte
- svelte