You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/configuration_builder.rs
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ wrap_fn!(
124
124
line_width,
125
125
u32,
126
126
"int",
127
-
"The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.\n\nDefault ```120``"
127
+
"The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.\n\nDefault ``120``"
128
128
);
129
129
130
130
wrap_fn!(
@@ -138,31 +138,31 @@ wrap_fn!(
138
138
indent_width,
139
139
u8,
140
140
"int",
141
-
"The number of columns for an indent.\n\nDefault: ```4``"
141
+
"The number of columns for an indent.\n\nDefault: ``4``"
142
142
);
143
143
144
144
wrap_enum_fn!(
145
145
new_line_kind,
146
146
NewLineKind,
147
-
"The kind of newline to use.\n\nDefault: ```NewLineKind.LineFeed``"
147
+
"The kind of newline to use.\n\nDefault: ``NewLineKind.LineFeed``"
148
148
);
149
149
150
150
wrap_enum_fn!(
151
151
quote_style,
152
152
QuoteStyle,
153
-
"The quote style to use.\n\nDefault: ```QuoteStyle.AlwaysDouble``"
153
+
"The quote style to use.\n\nDefault: ``QuoteStyle.AlwaysDouble``"
154
154
);
155
155
156
156
wrap_enum_fn!(
157
157
jsx_quote_style,
158
158
JsxQuoteStyle,
159
-
"The JSX quote style to use for string literals in JSX attributes.\n\nDefault: ```JsxQuoteStyle.PreferDouble``"
159
+
"The JSX quote style to use for string literals in JSX attributes.\n\nDefault: ``JsxQuoteStyle.PreferDouble``"
160
160
);
161
161
162
162
wrap_enum_fn!(
163
163
jsx_multi_line_parens,
164
164
JsxMultiLineParens,
165
-
"Whether to surround a JSX element or fragment with parentheses when it's the top JSX node and it spans multiple lines.\n\nDefault: ```JsxMultiLineParens.Prefer``"
165
+
"Whether to surround a JSX element or fragment with parentheses when it's the top JSX node and it spans multiple lines.\n\nDefault: ``JsxMultiLineParens.Prefer``"
166
166
);
167
167
168
168
wrap_fn!(
@@ -193,7 +193,7 @@ wrap_enum_fn!(
193
193
wrap_enum_fn!(
194
194
semi_colons,
195
195
SemiColons,
196
-
"Whether statements should end in a semi-colon.\n\nDefault: ```SemiColons.Prefer``"
196
+
"Whether statements should end in a semi-colon.\n\nDefault: ``SemiColons.Prefer``"
197
197
);
198
198
199
199
wrap_fn!(
@@ -206,50 +206,50 @@ wrap_fn!(
206
206
wrap_enum_fn!(
207
207
quote_props,
208
208
QuoteProps,
209
-
"Behaviour to use for quotes on property names.\n\nDefault: ```preserve``"
209
+
"Behaviour to use for quotes on property names.\n\nDefault: ``preserve``"
210
210
);
211
211
212
212
wrap_enum_fn!(
213
213
brace_position,
214
214
BracePosition,
215
-
"Where to place the opening brace.\n\nDefault: ```BracePosition.SameLineUnlessHanging``"
215
+
"Where to place the opening brace.\n\nDefault: ``BracePosition.SameLineUnlessHanging``"
216
216
);
217
217
218
218
wrap_enum_fn!(
219
219
next_control_flow_position,
220
220
NextControlFlowPosition,
221
-
"Where to place the next control flow within a control flow statement.\n\nDefault: ```NextControlFlowPosition.NextLine``"
221
+
"Where to place the next control flow within a control flow statement.\n\nDefault: ``NextControlFlowPosition.NextLine``"
222
222
);
223
223
224
224
wrap_enum_fn!(
225
225
operator_position,
226
226
OperatorPosition,
227
-
"Where to place the operator for expressions that span multiple lines.\n\nDefault: ```OperatorPosition.NextLine``"
227
+
"Where to place the operator for expressions that span multiple lines.\n\nDefault: ``OperatorPosition.NextLine``"
228
228
);
229
229
230
230
wrap_enum_fn!(
231
231
single_body_position,
232
232
SameOrNextLinePosition,
233
-
"Where to place the expression of a statement that could possibly be on one line (ex. ``if (true) console.log(5);`).\n\nDefault: ```SingleBodyPosition.Maintain``"
233
+
"Where to place the expression of a statement that could possibly be on one line (ex. ``if (true) console.log(5);`).\n\nDefault: ``SingleBodyPosition.Maintain``"
234
234
);
235
235
236
236
wrap_fn!(
237
237
file_indent_level,
238
238
u16,
239
239
"int",
240
-
"Amount of indents to use for the whole file.\n\nThis should only be set by tools that need to indent all the code in the file.\n\nDefault: ```0``"
240
+
"Amount of indents to use for the whole file.\n\nThis should only be set by tools that need to indent all the code in the file.\n\nDefault: ``0``"
241
241
);
242
242
243
243
wrap_enum_fn!(
244
244
trailing_commas,
245
245
TrailingCommas,
246
-
"If trailing commas should be used.\n\nDefault: ```TrailingCommas.OnlyMultiLine``"
246
+
"If trailing commas should be used.\n\nDefault: ``TrailingCommas.OnlyMultiLine``"
247
247
);
248
248
249
249
wrap_enum_fn!(
250
250
use_braces,
251
251
UseBraces,
252
-
"If braces should be used or not.\n\nDefault: ```UseBraces.WhenNotSingleLine``"
252
+
"If braces should be used or not.\n\nDefault: ``UseBraces.WhenNotSingleLine``"
253
253
);
254
254
255
255
wrap_fn!(
@@ -474,7 +474,7 @@ wrap_fn!(
474
474
wrap_enum_fn!(
475
475
arrow_function_use_parentheses,
476
476
UseParentheses,
477
-
"Whether to use parentheses for arrow functions.\n\nDefault: ```UseParentheses.Maintain``"
477
+
"Whether to use parentheses for arrow functions.\n\nDefault: ``UseParentheses.Maintain``"
0 commit comments