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: move cargo fmt to lint-staged from pre-commit (#5150)

LongYinan33c53217c37e
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 2f1bef1ce9..3ea16f0a05 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
-yarn lint-staged && yarn lint:ox && cargo fmt --all && git add .
+yarn lint-staged && yarn lint:ox
diff --git a/package.json b/package.json
index 903d543533..0b394bb8dc 100644
--- a/package.json
+++ b/package.json
@@ -50,6 +50,9 @@
],
"*.toml": [
"taplo format"
+ ],
+ "*.rs": [
+ "cargo fmt --"
]
},
"devDependencies": {