Skip to content

Commit

Permalink
skip pre-commit on merge and rebase, add pre-push (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeRed authored Sep 5, 2024
1 parent 1968680 commit 41bb12d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ pre-commit:
parallel: true
commands:
eslint:
glob: '*.{js,jsx,ts,tsx}'
glob: "*.{js,jsx,ts,tsx}"
run: npx eslint --fix {staged_files}
stage_fixed: true
stage_fixed: true
skip:
- merge
- rebase

pre-push:
commands:
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint --fix {push_files}

0 comments on commit 41bb12d

Please sign in to comment.