File tree Expand file tree Collapse file tree 1 file changed +25
-16
lines changed Expand file tree Collapse file tree 1 file changed +25
-16
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,10 @@ export default createRule<Options, MessageId>({
268
268
if ( overrideAction === 'ignore' ) return
269
269
270
270
// don't enforce anything on builtins
271
- if ( ! overrideAction && isBuiltIn ( importPathWithQueryString , context . settings ) ) {
271
+ if (
272
+ ! overrideAction &&
273
+ isBuiltIn ( importPathWithQueryString , context . settings )
274
+ ) {
272
275
return
273
276
}
274
277
@@ -320,13 +323,15 @@ export default createRule<Options, MessageId>({
320
323
} ,
321
324
...( props . fix && extension
322
325
? {
323
- fix ( fixer ) {
324
- return fixer . replaceText (
325
- source ,
326
- JSON . stringify ( `${ importPathWithQueryString } .${ extension } ` ) ,
327
- )
328
- } ,
329
- }
326
+ fix ( fixer ) {
327
+ return fixer . replaceText (
328
+ source ,
329
+ JSON . stringify (
330
+ `${ importPathWithQueryString } .${ extension } ` ,
331
+ ) ,
332
+ )
333
+ } ,
334
+ }
330
335
: { } ) ,
331
336
} )
332
337
}
@@ -344,16 +349,20 @@ export default createRule<Options, MessageId>({
344
349
} ,
345
350
...( props . fix
346
351
? {
347
- fix ( fixer ) {
348
- return fixer . replaceText (
349
- source ,
350
- JSON . stringify ( importPath . slice ( 0 , - ( extension . length + 1 ) ) ) ,
351
- )
352
- } ,
353
- }
352
+ fix ( fixer ) {
353
+ return fixer . replaceText (
354
+ source ,
355
+ JSON . stringify (
356
+ importPath . slice ( 0 , - ( extension . length + 1 ) ) ,
357
+ ) ,
358
+ )
359
+ } ,
360
+ }
354
361
: { } ) ,
355
362
} )
356
363
}
357
- } , { commonjs : true } )
364
+ } ,
365
+ { commonjs : true } ,
366
+ )
358
367
} ,
359
368
} )
You can’t perform that action at this time.
0 commit comments