From d69a00df7e139b6eda2e87e87f0bd9000d237274 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Wed, 26 Oct 2022 13:49:04 +0300 Subject: [PATCH] Change precommit hook lua formatter to stylua --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index fc94b13..fda453f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -25,7 +25,7 @@ staged_lua=$(echo "$staged_files" | grep '.lua$' || true) num_staged_lua=$(echo "$staged_lua" | grep -vce '^$' || true) if [ "$num_staged_lua" -gt 0 ]; then printf '\nFormatting %s staged Lua files with lua-format\n' "$num_staged_lua" - lua-format -i "$staged_lua" + stylua "$staged_lua" printf "Re-staging\n\n" git add "$staged_lua" fi