/
sane-fmt.dprint.json
175 lines (175 loc) · 7.92 KB
/
sane-fmt.dprint.json
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"$schema": "https://dprint.dev/schemas/v0.json",
"typescript": {
"indentWidth": 2,
"lineWidth": 120,
"useTabs": false,
"newLineKind": "lf",
"quoteStyle": "preferSingle",
"quoteProps": "asNeeded",
"semiColons": "asi",
"arrowFunction.useParentheses": "preferNone",
"binaryExpression.linePerExpression": false,
"conditionalExpression.linePerExpression": true,
"jsx.quoteStyle": "preferSingle",
"jsx.multiLineParens": "never",
"jsx.forceNewLinesSurroundingContent": false,
"jsxOpeningElement.bracketPosition": "nextLine",
"jsxSelfClosingElement.bracketPosition": "nextLine",
"memberExpression.linePerExpression": false,
"typeLiteral.separatorKind.singleLine": "comma",
"typeLiteral.separatorKind.multiLine": "semiColon",
"module.sortImportDeclarations": "caseSensitive",
"module.sortExportDeclarations": "caseSensitive",
"importDeclaration.sortNamedImports": "maintain",
"exportDeclaration.sortNamedExports": "maintain",
"ignoreNodeCommentText": "sane-fmt-ignore",
"ignoreFileCommentText": "sane-fmt-ignore-file",
"arrowFunction.bracePosition": "sameLine",
"classDeclaration.bracePosition": "sameLine",
"classExpression.bracePosition": "sameLine",
"constructor.bracePosition": "sameLine",
"doWhileStatement.bracePosition": "sameLine",
"enumDeclaration.bracePosition": "sameLine",
"getAccessor.bracePosition": "sameLine",
"ifStatement.bracePosition": "sameLine",
"interfaceDeclaration.bracePosition": "sameLine",
"forStatement.bracePosition": "sameLine",
"forInStatement.bracePosition": "sameLine",
"forOfStatement.bracePosition": "sameLine",
"functionDeclaration.bracePosition": "sameLine",
"functionExpression.bracePosition": "sameLine",
"method.bracePosition": "sameLine",
"moduleDeclaration.bracePosition": "sameLine",
"setAccessor.bracePosition": "sameLine",
"staticBlock.bracePosition": "sameLineUnlessHanging",
"switchCase.bracePosition": "sameLine",
"switchStatement.bracePosition": "sameLine",
"tryStatement.bracePosition": "sameLine",
"whileStatement.bracePosition": "sameLine",
"arguments.preferHanging": "never",
"arrayExpression.preferHanging": "never",
"arrayPattern.preferHanging": false,
"doWhileStatement.preferHanging": false,
"exportDeclaration.preferHanging": false,
"extendsClause.preferHanging": false,
"forStatement.preferHanging": false,
"forInStatement.preferHanging": false,
"forOfStatement.preferHanging": false,
"ifStatement.preferHanging": false,
"implementsClause.preferHanging": false,
"importDeclaration.preferHanging": false,
"jsxAttributes.preferHanging": false,
"objectExpression.preferHanging": false,
"objectPattern.preferHanging": false,
"parameters.preferHanging": "never",
"sequenceExpression.preferHanging": false,
"switchStatement.preferHanging": false,
"tupleType.preferHanging": "never",
"typeLiteral.preferHanging": false,
"typeParameters.preferHanging": "never",
"unionAndIntersectionType.preferHanging": false,
"variableStatement.preferHanging": false,
"whileStatement.preferHanging": false,
"enumDeclaration.memberSpacing": "maintain",
"ifStatement.nextControlFlowPosition": "sameLine",
"tryStatement.nextControlFlowPosition": "sameLine",
"doWhileStatement.nextControlFlowPosition": "sameLine",
"binaryExpression.operatorPosition": "sameLine",
"conditionalExpression.operatorPosition": "nextLine",
"conditionalType.operatorPosition": "nextLine",
"ifStatement.singleBodyPosition": "maintain",
"forStatement.singleBodyPosition": "maintain",
"forInStatement.singleBodyPosition": "maintain",
"forOfStatement.singleBodyPosition": "maintain",
"whileStatement.singleBodyPosition": "maintain",
"arguments.trailingCommas": "onlyMultiLine",
"parameters.trailingCommas": "onlyMultiLine",
"arrayExpression.trailingCommas": "onlyMultiLine",
"arrayPattern.trailingCommas": "onlyMultiLine",
"enumDeclaration.trailingCommas": "onlyMultiLine",
"exportDeclaration.trailingCommas": "onlyMultiLine",
"importDeclaration.trailingCommas": "onlyMultiLine",
"objectPattern.trailingCommas": "onlyMultiLine",
"objectExpression.trailingCommas": "onlyMultiLine",
"tupleType.trailingCommas": "onlyMultiLine",
"typeLiteral.trailingCommas": "onlyMultiLine",
"typeParameters.trailingCommas": "onlyMultiLine",
"ifStatement.useBraces": "whenNotSingleLine",
"forStatement.useBraces": "whenNotSingleLine",
"forOfStatement.useBraces": "whenNotSingleLine",
"forInStatement.useBraces": "whenNotSingleLine",
"whileStatement.useBraces": "whenNotSingleLine",
"arrayExpression.preferSingleLine": false,
"arrayPattern.preferSingleLine": false,
"arguments.preferSingleLine": false,
"binaryExpression.preferSingleLine": false,
"computed.preferSingleLine": false,
"conditionalExpression.preferSingleLine": true,
"conditionalType.preferSingleLine": false,
"decorators.preferSingleLine": false,
"exportDeclaration.preferSingleLine": true,
"forStatement.preferSingleLine": false,
"importDeclaration.preferSingleLine": true,
"jsxAttributes.preferSingleLine": false,
"jsxElement.preferSingleLine": false,
"mappedType.preferSingleLine": false,
"memberExpression.preferSingleLine": false,
"objectExpression.preferSingleLine": false,
"objectPattern.preferSingleLine": false,
"parameters.preferSingleLine": false,
"parentheses.preferSingleLine": false,
"tupleType.preferSingleLine": false,
"typeLiteral.preferSingleLine": false,
"typeParameters.preferSingleLine": false,
"unionAndIntersectionType.preferSingleLine": false,
"variableStatement.preferSingleLine": false,
"importDeclaration.forceSingleLine": false,
"exportDeclaration.forceSingleLine": false,
"exportDeclaration.forceMultiLine": false,
"importDeclaration.forceMultiLine": false,
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
"commentLine.forceSpaceAfterSlashes": false,
"constructSignature.spaceAfterNewKeyword": true,
"constructor.spaceBeforeParentheses": false,
"constructorType.spaceAfterNewKeyword": true,
"doWhileStatement.spaceAfterWhileKeyword": true,
"exportDeclaration.spaceSurroundingNamedExports": true,
"forStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterSemiColons": true,
"forInStatement.spaceAfterForKeyword": true,
"forOfStatement.spaceAfterForKeyword": true,
"functionDeclaration.spaceBeforeParentheses": false,
"functionExpression.spaceBeforeParentheses": false,
"functionExpression.spaceAfterFunctionKeyword": true,
"getAccessor.spaceBeforeParentheses": false,
"ifStatement.spaceAfterIfKeyword": true,
"importDeclaration.spaceSurroundingNamedImports": true,
"jsxExpressionContainer.spaceSurroundingExpression": false,
"jsxSelfClosingElement.spaceBeforeSlash": true,
"method.spaceBeforeParentheses": false,
"objectExpression.spaceSurroundingProperties": true,
"objectPattern.spaceSurroundingProperties": true,
"setAccessor.spaceBeforeParentheses": false,
"spaceSurroundingProperties": true,
"taggedTemplate.spaceBeforeLiteral": false,
"typeAnnotation.spaceBeforeColon": false,
"typeAssertion.spaceBeforeExpression": true,
"typeLiteral.spaceSurroundingProperties": true,
"whileStatement.spaceAfterWhileKeyword": true,
"arguments.spaceAround": false,
"arrayExpression.spaceAround": false,
"arrayPattern.spaceAround": false,
"catchClause.spaceAround": false,
"doWhileStatement.spaceAround": false,
"forInStatement.spaceAround": false,
"forOfStatement.spaceAround": false,
"forStatement.spaceAround": false,
"ifStatement.spaceAround": false,
"parameters.spaceAround": false,
"parenExpression.spaceAround": false,
"switchStatement.spaceAround": false,
"tupleType.spaceAround": false,
"whileStatement.spaceAround": false
}
}