Skip to content

Commit

Permalink
chore(deps): 🎨 Use dprint for consistent coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Dec 20, 2023
1 parent 8d874ae commit 7c2b3ab
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"asciidoctor.asciidoctor-vscode",
"dprint.dprint",
"rust-lang.rust-analyzer",
"seaql.firedbg-rust",
"serayuzgur.crates"
]
}
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"conventionalCommits.scopes": ["deps", "config"]
"conventionalCommits.scopes": ["deps", "config"],
"editor.defaultFormatter": "dprint.dprint",
"[dockerfile]": {
"editor.defaultFormatter": "dprint.dprint"
}
}
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use std::{

use clap::CommandFactory;
use clap_mangen::Man;
use cli::Args;

use crate::cli::Args;

fn main() -> io::Result<()> {
shadow_rs::new().unwrap();
Expand Down
28 changes: 28 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"typescript": {},
"json": {},
"markdown": {},
"toml": {
"indentWidth": 4
},
"dockerfile": {},
"biome": {},
"exec": {
"commands": [
{
"command": "rustfmt +nightly --unstable-features --edition 2021",
"exts": ["rs"]
}
]
},
"excludes": ["**/node_modules", "**/*-lock.json", "target"],
"plugins": [
"https://plugins.dprint.dev/typescript-0.88.7.wasm",
"https://plugins.dprint.dev/json-0.19.1.wasm",
"https://plugins.dprint.dev/markdown-0.16.3.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",
"https://plugins.dprint.dev/dockerfile-0.3.0.wasm",
"https://plugins.dprint.dev/biome-0.2.2.wasm",
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
]
}

0 comments on commit 7c2b3ab

Please sign in to comment.