setup pre-commit hooks for clang-format and prettier

This commit is contained in:
Okke Formsma
2020-11-14 20:38:48 +01:00
committed by Pete Johanson
parent b84d29c384
commit 11d990e59a
2 changed files with 19 additions and 0 deletions

12
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,12 @@
fail_fast: false
repos:
- repo: https://github.com/pocc/pre-commit-hooks
rev: master
hooks:
- id: clang-format
args:
- -i
- repo: https://github.com/prettier/prettier
rev: master
hooks:
- id: prettier