Skip to content

Commit 5234b12

Browse files
committed
Fix formatting.
1 parent bbfb1e4 commit 5234b12

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

crates/oxc_linter/src/rules/typescript/consistent_indexed_object_style.rs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,15 @@ impl Rule for ConsistentIndexedObjectStyle {
149149
TSTypeName::IdentifierReference(ide) => {
150150
if ide.name != inf.id.name {
151151
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
152-
preferred_style, sig.span,
152+
preferred_style,
153+
sig.span,
153154
));
154155
}
155156
}
156157
TSTypeName::QualifiedName(_) | TSTypeName::ThisExpression(_) => {
157158
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
158-
preferred_style, sig.span,
159+
preferred_style,
160+
sig.span,
159161
));
160162
}
161163
},
@@ -172,15 +174,17 @@ impl Rule for ConsistentIndexedObjectStyle {
172174

173175
if dec.id.name != ide.name {
174176
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
175-
preferred_style, sig.span,
177+
preferred_style,
178+
sig.span,
176179
));
177180
}
178181
}
179182
}
180183
}
181184
_ => {
182185
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
183-
preferred_style, sig.span,
186+
preferred_style,
187+
sig.span,
184188
));
185189
}
186190
}
@@ -205,13 +209,15 @@ impl Rule for ConsistentIndexedObjectStyle {
205209

206210
if ide.name != dec.id.name {
207211
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
208-
preferred_style, sig.span,
212+
preferred_style,
213+
sig.span,
209214
));
210215
}
211216
}
212217
TSTypeName::QualifiedName(_) | TSTypeName::ThisExpression(_) => {
213218
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
214-
preferred_style, sig.span,
219+
preferred_style,
220+
sig.span,
215221
));
216222
}
217223
},
@@ -228,15 +234,17 @@ impl Rule for ConsistentIndexedObjectStyle {
228234

229235
if dec.id.name != ide.name {
230236
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
231-
preferred_style, sig.span,
237+
preferred_style,
238+
sig.span,
232239
));
233240
}
234241
}
235242
}
236243
}
237244
_ => {
238245
ctx.diagnostic(consistent_indexed_object_style_diagnostic(
239-
preferred_style, sig.span,
246+
preferred_style,
247+
sig.span,
240248
));
241249
}
242250
}

0 commit comments

Comments
 (0)