@@ -200,7 +200,7 @@ function fixOutOfOrder(context, firstNode, secondNode, order) {
200
200
fix : canFix && ( fixer =>
201
201
fixer . replaceTextRange (
202
202
[ firstRootStart , secondRootEnd ] ,
203
- newCode + sourceCode . text . substring ( firstRootStart , secondRootStart )
203
+ newCode + sourceCode . text . substring ( firstRootStart , secondRootStart ) ,
204
204
) ) ,
205
205
} ) ;
206
206
} else if ( order === 'after' ) {
@@ -210,7 +210,7 @@ function fixOutOfOrder(context, firstNode, secondNode, order) {
210
210
fix : canFix && ( fixer =>
211
211
fixer . replaceTextRange (
212
212
[ secondRootStart , firstRootEnd ] ,
213
- sourceCode . text . substring ( secondRootEnd , firstRootEnd ) + newCode
213
+ sourceCode . text . substring ( secondRootEnd , firstRootEnd ) + newCode ,
214
214
) ) ,
215
215
} ) ;
216
216
}
@@ -463,7 +463,7 @@ function makeNewlinesBetweenReport(context, imported, newlinesBetweenImports) {
463
463
const getNumberOfEmptyLinesBetween = ( currentImport , previousImport ) => {
464
464
const linesBetweenImports = context . getSourceCode ( ) . lines . slice (
465
465
previousImport . node . loc . end . line ,
466
- currentImport . node . loc . start . line - 1
466
+ currentImport . node . loc . start . line - 1 ,
467
467
) ;
468
468
469
469
return linesBetweenImports . filter ( ( line ) => ! line . trim ( ) . length ) . length ;
@@ -631,7 +631,7 @@ module.exports = {
631
631
} ,
632
632
ranks ,
633
633
getBlockImports ( node . parent ) ,
634
- pathGroupsExcludedImportTypes
634
+ pathGroupsExcludedImportTypes ,
635
635
) ;
636
636
}
637
637
} ,
@@ -662,7 +662,7 @@ module.exports = {
662
662
} ,
663
663
ranks ,
664
664
getBlockImports ( node . parent ) ,
665
- pathGroupsExcludedImportTypes
665
+ pathGroupsExcludedImportTypes ,
666
666
) ;
667
667
} ,
668
668
CallExpression : function handleRequires ( node ) {
@@ -684,7 +684,7 @@ module.exports = {
684
684
} ,
685
685
ranks ,
686
686
getBlockImports ( block ) ,
687
- pathGroupsExcludedImportTypes
687
+ pathGroupsExcludedImportTypes ,
688
688
) ;
689
689
} ,
690
690
'Program:exit' : function reportAndReset ( ) {
0 commit comments