skip pre-commit on merge and rebase, add pre-push (#1607)

This commit is contained in:
Dmitriy K. 2024-09-05 06:08:00 -04:00 committed by GitHub
parent 1968680104
commit 41bb12d0c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
skip:
- merge
- rebase
pre-push:
commands:
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint --fix {push_files}