Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add prettier for auto formatting
[releng/builder.git]
/
.pre-commit-config.yaml
diff --git
a/.pre-commit-config.yaml
b/.pre-commit-config.yaml
index 13f206b2d62c1c744cea4b17acb6217eb631a171..9f5aa4ad1fcaf6f7f3ac474b9010d44d9e8112b8 100644
(file)
--- a/
.pre-commit-config.yaml
+++ b/
.pre-commit-config.yaml
@@
-6,6
+6,11
@@
repos:
- id: check-json
- id: trailing-whitespace
- id: check-json
- id: trailing-whitespace
+ - repo: https://github.com/prettier/prettier
+ rev: 2.0.5
+ hooks:
+ - id: prettier
+
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
hooks:
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
hooks:
@@
-16,10
+21,10
@@
repos:
hooks:
- id: shellcheck
exclude: >
hooks:
- id: shellcheck
exclude: >
-
(?x)^(
-
jjb/global-jjb/.*|
-
jenkins-config/.*
-
)$
+ (?x)^(
+ jjb/global-jjb/.*|
+ jenkins-config/.*
+ )$
- repo: https://github.com/ambv/black
rev: stable
- repo: https://github.com/ambv/black
rev: stable