From 9f15f24fcb69049cff5f2a8df03a981ef71b2a9d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 22 Jan 2022 16:47:25 +0100 Subject: feat(pre-commit): add hooks for stylua and conventional commits --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..3c40133 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/JohnnyMorganz/StyLua + rev: v0.11.3 + hooks: + - id: stylua + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v1.2.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + args: [] -- cgit v1.2.3-70-g09d2