From be63a2cafce26bb5d2e9052f42404b3e136a476a Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 8 Sep 2024 13:19:03 +0800 Subject: [PATCH] chore: add dprint --- .gitignore | 1 + dprint.json | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dprint.json diff --git a/.gitignore b/.gitignore index c2d89efbc..f151e7049 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +~ target/ **/*.rs.bk diff --git a/dprint.json b/dprint.json new file mode 100644 index 000000000..b9a7dc64c --- /dev/null +++ b/dprint.json @@ -0,0 +1,24 @@ +{ + "lineWidth": 120, + "typescript": { + "quoteStyle": "preferSingle", + "binaryExpression.operatorPosition": "sameLine" + }, + "json": { + "indentWidth": 2 + }, + "excludes": [ + "tasks/coverage/misc", + "**/tests/**", + "**/fixtures/**", + "**/*.snap", + "**/*.snap.*", + "**/CHANGELOG.md", + "~" + ], + "plugins": [ + "https://plugins.dprint.dev/typescript-0.91.8.wasm", + "https://plugins.dprint.dev/json-0.19.3.wasm", + "https://plugins.dprint.dev/markdown-0.17.8.wasm" + ] +}