-
Notifications
You must be signed in to change notification settings - Fork 354
/
.dprint.jsonc
46 lines (46 loc) · 1.39 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
{
"lineWidth": 100,
"indentWidth": 4,
"useTabs": true,
"newLineKind": "lf",
"includes": [
"src/**/*.{ts,tsx,js,jsx,json}",
"packages/**/src/**/*.{ts,tsx,js,jsx,json}"
],
"typescript": {
// JavaScript and TypeScript configuration
// https://dprint.dev/plugins/typescript/config/
//"preferSingleLine": true,
// "conditionalType.preferSingleLine": true,
//"forInStatement.preferHanging": true,
//"preferHanging": true,
"quoteProps": "asNeeded",
"trailingCommas": "never",
"operatorPosition": "sameLine",
"arguments.preferHanging": "always",
"bracePosition": "maintain",
"parameters.preferHanging": "always",
"arrowFunction.useParentheses": "preferNone",
"singleBodyPosition": "maintain",
"conditionalExpression.preferSingleLine": true,
"typeLiteral.preferSingleLine": true,
"useBraces": "whenNotSingleLine",
"spaceSurroundingProperties": false,
"typeLiteral.separatorKind": "comma",
"typeAssertion.spaceBeforeExpression": false,
"unionAndIntersectionType.preferHanging": true,
"importDeclaration.spaceSurroundingNamedImports": false,
"exportDeclaration.spaceSurroundingNamedExports": false
},
"json": {
// https://dprint.dev/plugins/json/config/
"lineWidth": 100,
"trailingCommas": "never",
"newLineKind": "lf",
"useTabs": true
},
"plugins": [
"https://plugins.dprint.dev/typescript-0.89.3.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm"
]
}