Skip to content

Commit

Permalink
[flow] no-unused-modules: add flow type support
Browse files Browse the repository at this point in the history
  • Loading branch information
rfermann committed Nov 17, 2019
1 parent f9d7e2b commit 3d33b70
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/rules/no-unused-modules.js
Expand Up @@ -392,7 +392,6 @@ module.exports = {
}

exports = exportList.get(file)
console.log('file: ', file)

// special case: export * from
const exportAll = exports.get(EXPORT_ALL_DECLARATION)
Expand All @@ -411,10 +410,8 @@ module.exports = {
}

const exportStatement = exports.get(exportedValue)
console.log('exportStatement: ', exportStatement)

const value = exportedValue === IMPORT_DEFAULT_SPECIFIER ? DEFAULT : exportedValue
console.log('value: ', value)

if (typeof exportStatement !== 'undefined'){
if (exportStatement.whereUsed.size < 1) {
Expand Down

0 comments on commit 3d33b70

Please sign in to comment.