-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.37 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
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1" # Use the sha or tag you want to point at
hooks:
- id: prettier
additional_dependencies:
files: ^src/
- repo: local
hooks:
- id: eslint
name: eslint
entry: src/scripts/eslint.sh
pass_filenames: false
language: system
types: [file]
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.81.0"
hooks:
- id: terraform_fmt
files: \.tf$
- repo: https://github.com/terraform-docs/terraform-docs
rev: "v0.16.0"
hooks:
- id: terraform-docs-go
name: terraform-docs-main
args: ["markdown", "table", "--output-file", "TERRAFORM_DOCS.md", "./infra"]
- repo: https://github.com/terraform-docs/terraform-docs
rev: "v0.16.0"
hooks:
- id: terraform-docs-go
name: terraform-docs-redirect
args: ["markdown", "table", "--output-file", "TERRAFORM_DOCS.md", "./infra/redirect"]
- repo: https://github.com/terraform-docs/terraform-docs
rev: "v0.16.0"
hooks:
- id: terraform-docs-go
name: terraform-docs-site-static
args: ["markdown", "table", "--output-file", "TERRAFORM_DOCS.md", "./infra/site_static"]