diff --git a/lefthook.yml b/lefthook.yml index e0be89d6..325b89b4 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,9 +2,7 @@ pre-commit: commands: eslint: glob: 'src/**/*.{js,svelte}' - run: npx eslint --cache --fix {staged_files} + run: npx eslint --cache --fix {staged_files} && git add . prettier: glob: 'src/**/*.{js,scss,md,svelte}' - run: npx prettier --write {staged_files} - addChanged: - run: git add . + run: npx prettier --write {staged_files} && git add .