Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://pre-commit.com for more information
repos:
- repo: local
hooks:
- id: just-fmt
name: just fmt
description: Format and lint code
entry: just fmt
language: system
types_or: [rust, ts]
pass_filenames: false

- id: just-typecheck
name: just typecheck
description: TypeScript type checking across all workspaces
entry: just typecheck
language: system
types_or: [ts]
pass_filenames: false
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ check:
pnpm lint
pnpm run typecheck

# TypeScript type checking across all workspaces
typecheck:
pnpm -r run typecheck

# Run unit tests
unit-test:
cargo test -p escrow-program
Expand Down
Loading