From 206d9160de7f1289a16b56e418afaef80a9cb7df Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 4 Jan 2020 17:21:33 -0500 Subject: Adding cargo checking to husky pre-commit. Fixes #402 --- ui/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/package.json') diff --git a/ui/package.json b/ui/package.json index f816b4f6..afcb8a39 100644 --- a/ui/package.json +++ b/ui/package.json @@ -58,7 +58,7 @@ "engineStrict": true, "husky": { "hooks": { - "pre-commit": "lint-staged" + "pre-commit": "cargo fmt --manifest-path ../server/Cargo.toml && cargo clippy --manifest-path ../server/Cargo.toml --all-targets --all-features -- -D warnings && lint-staged" } }, "lint-staged": { @@ -67,6 +67,9 @@ "eslint --fix", "git add" ], + "../server/src/**/*.rs": [ + "git add" + ], "package.json": [ "sortpack", "git add" -- cgit v1.2.3