From 2a4741e9ab6e30be7f3d5fbdfb80cc4408b4c6f1 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 29 Nov 2023 10:11:34 +0000 Subject: [PATCH] chore: add lint-staged command to pre-commit file (#5126) --- .husky/pre-commit | 2 +- packages/frontend/native/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 76188b655..2f1bef1ce 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn lint:ox +yarn lint-staged && yarn lint:ox && cargo fmt --all && git add . diff --git a/packages/frontend/native/src/lib.rs b/packages/frontend/native/src/lib.rs index ef92a6727..fa8de0f14 100644 --- a/packages/frontend/native/src/lib.rs +++ b/packages/frontend/native/src/lib.rs @@ -1,2 +1,2 @@ +pub mod hashcash; pub mod sqlite; -pub mod hashcash; \ No newline at end of file