chore: add pre commit hook

This commit is contained in:
kiyan
2022-04-23 12:39:21 +02:00
parent d4d02cd4d1
commit 5675208d13
2 changed files with 7 additions and 0 deletions

4
.hooks/pre-commit.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
luacheck . || exit 1
stylua lua/**/*.lua --check || exit 1