From 11d990e59a55bf1e834c12cae4542e1ab6af4f20 Mon Sep 17 00:00:00 2001 From: Okke Formsma Date: Sat, 14 Nov 2020 20:38:48 +0100 Subject: setup pre-commit hooks for clang-format and prettier --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .pre-commit-config.yaml (limited to '.pre-commit-config.yaml') 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 -- cgit v1.2.3