mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 06:43:29 +00:00
21 lines
947 B
YAML
21 lines
947 B
YAML
########################################################################################################################
|
|
# Refer for explanation to following link: #
|
|
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md #
|
|
########################################################################################################################
|
|
|
|
pre-commit:
|
|
commands:
|
|
# automatically format files, ✨magically✨
|
|
prettier:
|
|
glob: '[^pnpm-lock]*.{js,jsx,ts,tsx,html,json,yml,yaml,css,scss,md}'
|
|
run: pnpm prettier --write {staged_files} && git add {staged_files}
|
|
# pre-push:
|
|
# parallel: true
|
|
# commands:
|
|
# lint:
|
|
# glob: '*.{ts,tsx}'
|
|
# run: pnpm eslint {staged_files}
|
|
# markdown-link-check:
|
|
# glob: '*.md'
|
|
# run: pnpm markdown-link-check {staged_files}
|