2022-07-27 07:06:34 +00:00
|
|
|
########################################################################################################################
|
|
|
|
# Refer for explanation to following link: #
|
|
|
|
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md #
|
|
|
|
########################################################################################################################
|
|
|
|
|
2022-08-04 17:36:29 +00:00
|
|
|
pre-push:
|
2022-07-27 07:06:34 +00:00
|
|
|
parallel: true
|
|
|
|
commands:
|
|
|
|
type-check:
|
2022-08-29 11:59:09 +00:00
|
|
|
glob: '*.{ts,tsx}'
|
2022-07-27 07:06:34 +00:00
|
|
|
run: pnpm typecheck
|
|
|
|
lint:
|
|
|
|
glob: '*.{ts,tsx}'
|
2022-08-01 03:30:10 +00:00
|
|
|
run: pnpm eslint {staged_files}
|
2022-07-27 07:06:34 +00:00
|
|
|
markdown-link-check:
|
|
|
|
glob: '*.md'
|
|
|
|
run: pnpm markdown-link-check {staged_files}
|
|
|
|
rust-fmt:
|
|
|
|
glob: '*.rs'
|
|
|
|
run: cargo fmt --all -- --check
|
|
|
|
rust-lint-tauri:
|
|
|
|
run: cargo clippy --package spacedrive -- -D warnings
|
|
|
|
rust-lint-core:
|
|
|
|
run: cargo clippy --package sdcore --lib -- -D warnings
|
|
|
|
rust-lint-server:
|
|
|
|
run: cargo clippy --package server -- -D warnings
|