mirror of https://github.com/LemmyNet/lemmy.git
Adding a better rust formatter.
parent
a6d88fdfb0
commit
083fcb9c6c
|
@ -57,7 +57,7 @@
|
||||||
"engineStrict": true,
|
"engineStrict": true,
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"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": {
|
"lint-staged": {
|
||||||
|
@ -67,6 +67,7 @@
|
||||||
"git add"
|
"git add"
|
||||||
],
|
],
|
||||||
"../server/src/**/*.rs": [
|
"../server/src/**/*.rs": [
|
||||||
|
"rustfmt --config-path ../server/.rustfmt.toml",
|
||||||
"git add"
|
"git add"
|
||||||
],
|
],
|
||||||
"package.json": [
|
"package.json": [
|
||||||
|
|
Loading…
Reference in New Issue