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 .