File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ module.exports = {
966
966
pathGroupsExcludedImportTypes ,
967
967
) ;
968
968
} ,
969
- ...named . require ? {
969
+ ...named . require && {
970
970
VariableDeclarator : function orderRequireNames ( node ) {
971
971
if ( node . id . type === 'ObjectPattern' && isRequireExpression ( node . init ) ) {
972
972
for ( let i = 0 ; i < node . id . properties . length ; i ++ ) {
@@ -989,8 +989,8 @@ module.exports = {
989
989
) ;
990
990
}
991
991
} ,
992
- } : { } ,
993
- ...named . export ? {
992
+ } ,
993
+ ...named . export && {
994
994
ExportNamedDeclaration : function orderExportNames ( node ) {
995
995
makeNamedOrderReport (
996
996
context ,
@@ -1005,7 +1005,7 @@ module.exports = {
1005
1005
} ,
1006
1006
} ) ) ) ;
1007
1007
} ,
1008
- } : { } ,
1008
+ } ,
1009
1009
...named . cjsExports && {
1010
1010
AssignmentExpression : function orderModuleExportNames ( node ) {
1011
1011
if ( node . parent . type === 'ExpressionStatement' ) {
You can’t perform that action at this time.
0 commit comments