Skip to content

Commit 9f792ce

Browse files
Include prettier into pre-commit hooks
- Use existing yarn setup for calling prettier - Run with --write to replicate linting script behaviour - Will run in parallel to existing linting script in ci for evaluation purposes
1 parent 693e6e5 commit 9f792ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ repos:
44
hooks:
55
- id: terraform_fmt
66
files: \.(tf|tfvars|hcl)$
7+
- repo: local
8+
hooks:
9+
- id: prettier
10+
name: Prettier
11+
entry: |
12+
yarn prettier --write --ignore-unknown
13+
language: system
14+
# pass_filenames: false
15+
# stages: [manual]

0 commit comments

Comments
 (0)