dbx/.husky/pre-commit

4 lines
221 B
Plaintext

npx lint-staged
cd src-tauri && cargo fmt && git add -u .
cd "$(git rev-parse --show-toplevel)/crates/dbx-core" && cargo fmt --all && git add -u .
cd "$(git rev-parse --show-toplevel)/src-web" && cargo fmt && git add -u .