diff options
| author | murilo ijanc | 2025-11-20 19:08:49 -0300 |
|---|---|---|
| committer | murilo ijanc | 2025-11-20 19:08:49 -0300 |
| commit | 193ea42ea1d36228717839a25d1badf415e71320 (patch) | |
| tree | 4cb33f4382d9be49f7290f47f934d35dd0ce0060 /dprint.json | |
| parent | 96ce496310f086af43dcb51adda52ec4bd90c89c (diff) | |
| download | cogops-193ea42ea1d36228717839a25d1badf415e71320.tar.gz | |
Add support to exec rustfmt
Diffstat (limited to 'dprint.json')
| -rw-r--r-- | dprint.json | 21 |
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" ] } |