summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorOkke Formsma <okke@formsma.nl>2020-11-14 20:38:48 +0100
committerPete Johanson <peter@peterjohanson.com>2021-02-04 07:42:02 -0500
commit11d990e59a55bf1e834c12cae4542e1ab6af4f20 (patch)
tree450b7014cb11b0f7bb95c08a7dcfcde95d90ab41 /.pre-commit-config.yaml
parentb84d29c384532443010a7140e8670482f2a6ca02 (diff)
setup pre-commit hooks for clang-format and prettier
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..5974bd6
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -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