Skip to content

Commit

Permalink
Ignoring flow type exports, resolve #484
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubsta committed Oct 24, 2016
1 parent edbb570 commit cd37890
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/prefer-default-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ module.exports = {
// if there are specifiers, node.declaration should be null
if (!node.declaration) return

// don't count flow types exports
if (node.exportKind === 'type') return

if (node.declaration.declarations) {
node.declaration.declarations.forEach(function(declaration) {
captureDeclaration(declaration.id)
Expand Down

0 comments on commit cd37890

Please sign in to comment.