aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormurilo ijanc2025-11-20 17:46:03 -0300
committermurilo ijanc2025-11-20 17:46:03 -0300
commitae9c90bc1fb16ce50f4f6f5f72f34a790a900269 (patch)
tree9b7d9c033827858d39c59d4617f585e2667836ba
parent416a6c6aff0114af17cf8bd8ca3a3b9b871c34a2 (diff)
downloadimgst-ae9c90bc1fb16ce50f4f6f5f72f34a790a900269.tar.gz
Add support to exec rustfmt
-rw-r--r--dprint.json21
1 files changed, 13 insertions, 8 deletions
diff --git a/dprint.json b/dprint.json
index 284a8ee..a2a3c8f 100644
--- a/dprint.json
+++ b/dprint.json
@@ -1,20 +1,25 @@
{
- "lineWidth": 79,
"markdown": {
- "textWrap": "always"
- },
- "json": {
- "indentWidth": 2
},
"toml": {
},
"excludes": [
- "CHANGELOG.md",
"deny.toml"
],
+ "exec": {
+ "cwd": "${configDir}",
+ "commands": [{
+ "command": "rustfmt",
+ "exts": ["rs"],
+ "cacheKeyFiles": [
+ ".rustfmt.toml",
+ "rust-toolchain.toml"
+ ]
+ }]
+ },
"plugins": [
- "https://plugins.dprint.dev/json-0.21.0.wasm",
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
- "https://plugins.dprint.dev/toml-0.7.0.wasm"
+ "https://plugins.dprint.dev/toml-0.7.0.wasm",
+ "https://plugins.dprint.dev/exec-0.6.0.json@a054130d458f124f9b5c91484833828950723a5af3f8ff2bd1523bd47b83b364"
]
}