-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
95 lines (84 loc) · 2.29 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: |
(?x)^(
USAGE.md
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=512"]
- id: check-json
- id: check-yaml
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
# yamllint
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
# cspell
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.15.3
hooks:
- id: cspell
# markdownlint
# see: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
# textlint
- repo: local
hooks:
- id: textlint
name: textlint
language: node
types: [file]
files: \.(txt|md|mdown|markdown)$
entry: textlint
require_serial: false
additional_dependencies:
- "textlint@12.2.1"
- "textlint-filter-rule-allowlist@4.0.0"
- "textlint-rule-ja-no-space-between-full-width@2.2.0"
- "textlint-filter-rule-comments@1.2.2"
- "textlint-rule-no-dropping-the-ra@3.0.0"
- "textlint-rule-terminology@3.0.1"
# shellcheck
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
# prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: Format GitHub Actions workflow files
types:
- yaml
# actionlint
- repo: https://github.com/rhysd/actionlint
rev: v1.7.4
hooks:
- id: actionlint-docker
# renovate-config-validator
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.8.0
hooks:
- id: renovate-config-validator
files: renovate.json
# terraform fmt
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt