-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dprint.jsonc
142 lines (139 loc) · 3.59 KB
/
.dprint.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"excludes": [
"**/*-lock.json",
"**/*.bak",
"**/*.bak2",
"**/*.nix",
"**/node_modules",
".dart_tool/",
".direnv/",
".idea/",
"android/",
"assets/",
"ios/",
"linux/",
"macos/",
"web/",
"windows/",
"result"
],
"plugins": [
"https://plugins.dprint.dev/dockerfile-0.3.2.wasm",
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0",
"https://plugins.dprint.dev/g-plane/malva-v0.10.1.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.13.0.wasm",
"https://plugins.dprint.dev/g-plane/pretty_graphql-v0.2.0.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/jupyter-0.1.4.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/prettier-0.46.1.json@e5bd083088a8dfc6e5ce2d3c9bee81489b065bd5345ef55b59f5d96627928b7a",
"https://plugins.dprint.dev/roslyn-0.18.0.json@9586754a7e586ccda5dba4e694c0f225aabde63720c905dd85e02453b6f5e5de",
"https://plugins.dprint.dev/ruff-0.3.9.wasm",
"https://plugins.dprint.dev/toml-0.6.2.wasm",
"https://plugins.dprint.dev/typescript-0.93.0.wasm"
],
"exec": {
"cwd": "${configDir}",
"lineWidth": 120,
"indentWidth": 2,
"useTabs": false,
"cacheKey": "1",
"timeout": 60,
"commands": [
// Note: Running 'nixfmt' from justfile
// {
// "command": "just fmt-nix"
// },
// Note: Running 'dart format' from justfile
// {
// "command": "just fmt-dart"
// },
{
"command": "rustfmt",
"exts": ["rs"]
},
{
"command": "java -jar formatter.jar {{file_path}}",
"exts": ["java"]
},
{
"command": "yapf",
"exts": ["py"]
},
{
"command": "prettier --stdin-filepath {{file_path}} --tab-width {{indent_width}} --print-width {{line_width}}",
// add more extensions that prettier should format
"exts": ["js", "ts", "html"]
}
]
},
"prettier": {
"plugins": [
"@prettier/plugin-xml",
"prettier-plugin-go-template",
"prettier-plugin-java",
"prettier-plugin-jinja-template",
"prettier-plugin-kotlin",
"prettier-plugin-nginx",
"prettier-plugin-properties",
"prettier-plugin-rust",
"prettier-plugin-sh",
"prettier-plugin-toml"
],
"arrowParens": "avoid",
"bracketSpacing": true,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": true,
"printWidth": 120,
"proseWrap": "always",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
},
// Most of these are here just so I can recall that they can be overridden for each plugin
// https://dprint.dev/config/
"malva": {
// config goes here
},
"typescript": {
// config goes here
},
"json": {
"trailingCommas": "never"
},
"markdown": {
// config goes here
},
"toml": {
// config goes here
},
"yaml": {
// not "pretty_yaml"
// config goes here
},
"dockerfile": {
// config goes here
},
"roslyn": {
"csharp.indentBlock": false,
"visualBasic.indentWidth": 2
},
"markup": {
// not "markup_fmt"
// config goes here
},
"graphql": {
// not "pretty_graphql"
// config goes here
},
"ruff": {
// config goes here
}
}