mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Adding a better rust formatter.
This commit is contained in:
parent
e5a3dc04bf
commit
7bf391957d
3
ui/package.json
vendored
3
ui/package.json
vendored
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user