-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
58 lines (51 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
args: ['--unsafe']
- id: check-json
- id: check-toml
- id: trailing-whitespace
exclude: testdata/
- repo: local
hooks:
- id: eslint
name: eslint
entry: yarn eslint
language: system
files: '\.(ts|tsx|js|jsx)$'
- id: typescript
name: typescript
entry: yarn tsc
language: system
pass_filenames: false
files: '\.(ts|tsx)$'
- id: prettier
name: prettier
entry: yarn prettier --write --list-different --ignore-unknown
exclude: testdata
language: system
files: '\.(ts|tsx|js|jsx|json|yaml|css)$'
- id: golangci-lint
name: golangci-lint
language: system
entry: bash -c 'cd lambdas/ && exec golangci-lint run --fix'
types: [go]
pass_filenames: false
- id: rubocop
name: rubocop
language: system
files: '\.(rb|rbs|rake|jbuilder)$|Gemfile$'
entry: 'bundle exec rubocop --auto-correct'
- id: erblint
name: erblint
language: system
files: '\.html\.erb$'
entry: 'bundle exec erblint --autocorrect'
- id: sorbet
name: sorbet
language: system
pass_filenames: false
files: '^sorbet\/|\.(rb|rbi|rbs|rake|jbuilder)$|Gemfile$'
entry: 'bundle exec srb tc'