chore: move cargo fmt to lint-staged from pre-commit (#5150)

This commit is contained in:
LongYinan committed 2023-12-04 06:42:54 +00:00
1 parent 91f3149148
commit 33c53217c3
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
yarn lint-staged && yarn lint:ox && cargo fmt --all && git add . yarn lint-staged && yarn lint:ox
+3
View File
@@ -50,6 +50,9 @@
], ],
"*.toml": [ "*.toml": [
"taplo format" "taplo format"
],
"*.rs": [
"cargo fmt --"
] ]
}, },
"devDependencies": { "devDependencies": {