diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-04 17:21:33 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-04 17:21:33 -0500 |
commit | 206d9160de7f1289a16b56e418afaef80a9cb7df (patch) | |
tree | 1855dc5fd11970dedefd8d0c245a0d220ef1f16c /ui/package.json | |
parent | a68fd4f2aa42bffad0b32bac42e87926de88b39f (diff) |
Adding cargo checking to husky pre-commit. Fixes #402
Diffstat (limited to 'ui/package.json')
-rw-r--r-- | ui/package.json | 5 |
1 files changed, 4 insertions, 1 deletions
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" |