Adding a better rust formatter.

This commit is contained in:
Dessalines 2020-01-13 21:32:08 -05:00
parent e5a3dc04bf
commit 7bf391957d

3
ui/package.json vendored
View File

@ -57,7 +57,7 @@
"engineStrict": true,
"husky": {
"hooks": {
"pre-commit": "cargo fmt --manifest-path ../server/Cargo.toml && cargo clippy --manifest-path ../server/Cargo.toml --all-targets --all-features -- -D warnings && lint-staged"
"pre-commit": "cargo clippy --manifest-path ../server/Cargo.toml --all-targets --all-features -- -D warnings && lint-staged"
}
},
"lint-staged": {
@ -67,6 +67,7 @@
"git add"
],
"../server/src/**/*.rs": [
"rustfmt --config-path ../server/.rustfmt.toml",
"git add"
],
"package.json": [