From 464459b107fe3982c23a6a7be127dd8b5b10a2bd Mon Sep 17 00:00:00 2001 From: Jon McClure Date: Sat, 3 Sep 2022 15:16:02 +0100 Subject: [PATCH] closes #90 --- lefthook.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index 7059b37..3861953 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -5,9 +5,7 @@ pre-commit: commands: eslint: glob: '*.js' - run: npx eslint --cache --fix {staged_files} + run: npx eslint --cache --fix {staged_files} && git add . prettier: glob: '*.{js,css,md,svelte}' - run: npx prettier --write {staged_files} - addChanged: - run: git add . + run: npx prettier --write {staged_files} && git add .