-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
56 lines (53 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
53
54
55
56
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.4.0'
hooks:
- id: check-yaml
args:
- --allow-multiple-documents
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
exclude: ^dist/
- id: trailing-whitespace
exclude: ^dist/
- id: end-of-file-fixer
exclude: ^dist/
- repo: https://github.com/Jarmos-san/shellcheck-precommit
rev: 'v0.2.0'
hooks:
- id: shellcheck-system
name: shellcheck
- repo: local
hooks:
# this is effectively running `yarn run all` but individually so we can identify which step failed
- id: prettier
name: prettier
entry: yarn run prettier:check
pass_filenames: false
types:
- ts
language: system
exclude: ^dist/
- id: eslint
name: eslint
entry: yarn run lint
pass_filenames: false
language: system
types:
- ts
exclude: ^dist/
- id: build-dist
name: build dist package
entry: yarn run package
pass_filenames: false
types:
- ts
language: system
- repo: https://github.com/specklesystems/pre-commit
rev: '0.2.0'
hooks:
- id: ggshield-not-ci
name: ggshield