Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: add lint-staged command to pre-commit file (#5126)

LongYinan2a4741e9ab6e
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 76188b6556..2f1bef1ce9 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 ef92a6727e..fa8de0f14a 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