From 12bec60c5107ba027b841b0ae87f23c61549a51c Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Sat, 18 Feb 2023 10:09:18 +0100 Subject: [PATCH] Add lefthook based git hooks setup --- lefthook.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lefthook.yml diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..a542902 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,8 @@ +pre-commit: + parallel: true + commands: + shellcheck: + glob: "*.sh" + run: shellcheck {staged_files} + prettier: + run: prettier --check .