-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use lefthook instead of husky and lint-staged for git hooks (#978)
- Loading branch information
Showing
4 changed files
with
250 additions
and
1,131 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# EXAMPLE USAGE | ||
# Refer for explanation to following link: | ||
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md | ||
# | ||
# pre-push: | ||
# commands: | ||
# packages-audit: | ||
# tags: frontend security | ||
# run: yarn audit | ||
# gems-audit: | ||
# tags: backend security | ||
# run: bundle audit | ||
# | ||
min_version: 1.4.3 | ||
no_tty: false | ||
skip_output: | ||
- meta # Skips lefthook version printing | ||
- skips # Skips "skip" printing (i.e. no files matched) | ||
- summary # Skips summary block (successful and failed steps) printing | ||
- success # Skips successful steps printing | ||
- failure # Skips failed steps printing | ||
# - execution # I want to skip all execution printing | ||
- execution_info # Skips printing `EXECUTE > ...` logging | ||
# - execution_out # I don't want to Skip printing successfully executed commands' output | ||
pre-commit: | ||
parallel: true | ||
commands: | ||
fmt: | ||
skip: | ||
- merge | ||
- rebase | ||
stage_fixed: true | ||
glob: "**/*" | ||
run: prettier --write --ignore-unknown {staged_files} |
Oops, something went wrong.