chore: add dprint

This commit is contained in:
Boshen 2024-09-08 13:19:03 +08:00
parent 2fb8c202e6
commit be63a2cafc
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
2 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
~
target/
**/*.rs.bk

24
dprint.json Normal file
View file

@ -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"
]
}