Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 24, 2022
1 parent 86d5340 commit eeec5d4
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -59,7 +59,7 @@ async function parseModuleInfo(
case 'ExportDefaultExpression':
case 'ExportDefaultDeclaration':
names.push('default')
continue
break
case 'ExportNamedDeclaration':
if (node.declaration) {
if (node.declaration.type === 'VariableDeclaration') {
Expand All @@ -77,12 +77,12 @@ async function parseModuleInfo(
addExportNames(names, specificers[j].exported)
}
}
continue
break
case 'ExportDeclaration':
if (node.declaration?.identifier) {
addExportNames(names, node.declaration.identifier)
}
continue
break
case 'ExpressionStatement': {
const {
expression: { left },
Expand All @@ -95,6 +95,7 @@ async function parseModuleInfo(
) {
addExportNames(names, left.property)
}
break
}
default:
break
Expand Down

0 comments on commit eeec5d4

Please sign in to comment.