mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-08 03:42:49 +00:00
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
########################################################################################################################
|
|
# Refer for explanation to following link: #
|
|
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md #
|
|
########################################################################################################################
|
|
|
|
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
type-check:
|
|
glob: "*.{ts,tsx}"
|
|
run: pnpm typecheck
|
|
lint:
|
|
glob: '*.{ts,tsx}'
|
|
run: pnpm eslint {staged_files}
|
|
spelling:
|
|
glob: '*.{ts,tsx,md,rs}'
|
|
run: pnpm cspell {staged_files}
|
|
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-core-derive:
|
|
run: cargo clippy --package core-derive --lib -- -D warnings
|
|
rust-lint-server:
|
|
run: cargo clippy --package server -- -D warnings
|