Skip to content

Commit 0374959

Browse files
committed
Lint
1 parent 532ef58 commit 0374959

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

python/formate_js/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# stdlib
2-
from typing import TypedDict
3-
41
# this package
52
from ._formate_js import *
63

src/configuration_builder.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ wrap_fn!(
124124
line_width,
125125
u32,
126126
"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``"
128128
);
129129

130130
wrap_fn!(
@@ -138,31 +138,31 @@ wrap_fn!(
138138
indent_width,
139139
u8,
140140
"int",
141-
"The number of columns for an indent.\n\nDefault: ```4``"
141+
"The number of columns for an indent.\n\nDefault: ``4``"
142142
);
143143

144144
wrap_enum_fn!(
145145
new_line_kind,
146146
NewLineKind,
147-
"The kind of newline to use.\n\nDefault: ```NewLineKind.LineFeed``"
147+
"The kind of newline to use.\n\nDefault: ``NewLineKind.LineFeed``"
148148
);
149149

150150
wrap_enum_fn!(
151151
quote_style,
152152
QuoteStyle,
153-
"The quote style to use.\n\nDefault: ```QuoteStyle.AlwaysDouble``"
153+
"The quote style to use.\n\nDefault: ``QuoteStyle.AlwaysDouble``"
154154
);
155155

156156
wrap_enum_fn!(
157157
jsx_quote_style,
158158
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``"
160160
);
161161

162162
wrap_enum_fn!(
163163
jsx_multi_line_parens,
164164
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``"
166166
);
167167

168168
wrap_fn!(
@@ -193,7 +193,7 @@ wrap_enum_fn!(
193193
wrap_enum_fn!(
194194
semi_colons,
195195
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``"
197197
);
198198

199199
wrap_fn!(
@@ -206,50 +206,50 @@ wrap_fn!(
206206
wrap_enum_fn!(
207207
quote_props,
208208
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``"
210210
);
211211

212212
wrap_enum_fn!(
213213
brace_position,
214214
BracePosition,
215-
"Where to place the opening brace.\n\nDefault: ```BracePosition.SameLineUnlessHanging``"
215+
"Where to place the opening brace.\n\nDefault: ``BracePosition.SameLineUnlessHanging``"
216216
);
217217

218218
wrap_enum_fn!(
219219
next_control_flow_position,
220220
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``"
222222
);
223223

224224
wrap_enum_fn!(
225225
operator_position,
226226
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``"
228228
);
229229

230230
wrap_enum_fn!(
231231
single_body_position,
232232
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``"
234234
);
235235

236236
wrap_fn!(
237237
file_indent_level,
238238
u16,
239239
"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``"
241241
);
242242

243243
wrap_enum_fn!(
244244
trailing_commas,
245245
TrailingCommas,
246-
"If trailing commas should be used.\n\nDefault: ```TrailingCommas.OnlyMultiLine``"
246+
"If trailing commas should be used.\n\nDefault: ``TrailingCommas.OnlyMultiLine``"
247247
);
248248

249249
wrap_enum_fn!(
250250
use_braces,
251251
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``"
253253
);
254254

255255
wrap_fn!(
@@ -474,7 +474,7 @@ wrap_fn!(
474474
wrap_enum_fn!(
475475
arrow_function_use_parentheses,
476476
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``"
478478
);
479479
wrap_fn!(
480480
binary_expression_line_per_expression,

0 commit comments

Comments
 (0)