Opt-in to auto-corrections? Custom fix commands that are different than the run command? #469
-
Is there a way to let users opt in/out of autofixing globally? I'm migrating our teams from https://github.com/gusto/committer which has a flag to run the pre-commit hook with a fix. We can also configure a separate command for fixing, with autostage, ie: - name: SVGO
command: script/committer-svgo.sh
files: '\.svg$'
fix:
command: yarn run svgo -i
output: '\n'
autostage: true From what I'm seeing, the convention is to add the fix flags to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey! There is Is it the thing you were looking for? |
Beta Was this translation helpful? Give feedback.
I guess I got it. So, you want to control these steps:
If that's correct I can suggest a workaround since this flow is not usual. The idea is to call call lefthook from within itself.
The on…