forked from nushell/nushell.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lefthook.yml
34 lines (34 loc) · 1.08 KB
/
lefthook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.5.0
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: npx prettier --write --ignore-unknown {staged_files}