diff --git a/examples/complete/lefthook.yml b/examples/complete/lefthook.yml index 25a5804e..5ea64fb1 100644 --- a/examples/complete/lefthook.yml +++ b/examples/complete/lefthook.yml @@ -9,11 +9,13 @@ pre-commit: tags: frontend style glob: "*.js" run: yarn stylelint {staged_files} + stage_fixed: true rubocop: tags: backend style glob: "*.rb" exclude: '(^|/)(application|routes)\.rb$' run: bundle exec rubocop --force-exclusion {all_files} + stage_fixed: true scripts: "good_job.js": runner: node