-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.85 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
61
62
63
64
65
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
name: Check yaml files
- id: trailing-whitespace
name: Check trailing whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
name: Check yaml files (yamllint)
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
name: Checks for common misspellings in text files
entry: codespell
language: python
types: [text]
- repo: local
hooks:
- id: docker-markdownlint
name: Run markdownlint with docker
entry: markdownlint/markdownlint -r "~MD013"
language: docker_image
types: [markdown]
- id: docker-shell-shfmt
name: Run shfmt with docker
entry: mvdan/shfmt:latest -d -i 2 -ci
language: docker_image
types: [shell]
- id: docker-shell-lint
name: Run shellcheck with docker
language: docker_image
entry: koalaman/shellcheck:stable
types: [shell]
- id: docker-prettier
name: Run prettier with docker
entry: tmknom/prettier:latest -l
language: docker_image
files: "\\.(\
css|less|scss\
|graphql|gql\
|html\
|js|jsx\
|json\
|md|markdown|mdown|mkdn\
|mdx\
|ts|tsx\
|vue\
|yaml|yml\
)$"
- id: docker-lychee
name: Run lychee on markdown files with docker
entry: lycheeverse/lychee
language: docker_image
types: [markdown]