skip pre-commit on merge and rebase, add pre-push (#1607)
This commit is contained in:
parent
1968680104
commit
41bb12d0c0
13
lefthook.yml
13
lefthook.yml
|
@ -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}
|
Loading…
Reference in New Issue