eslint-plugin-flowtype
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -38,4 +38,11 @@ 'use strict'; | ||
var ignoreTypeDefault = context.options[1] && context.options[1].ignoreTypeDefault; | ||
var isInsideDeclareModule = false; | ||
return { | ||
DeclareModule() { | ||
isInsideDeclareModule = true; | ||
}, | ||
'DeclareModule:exit'() { | ||
isInsideDeclareModule = false; | ||
}, | ||
ImportDeclaration(node) { | ||
@@ -46,2 +53,8 @@ if (node.importKind !== 'type') { | ||
// type specifiers are not allowed inside module declarations: | ||
// https://github.com/facebook/flow/issues/7609 | ||
if (isInsideDeclareModule) { | ||
return; | ||
} | ||
if (ignoreTypeDefault && node.specifiers[0] && node.specifiers[0].type === 'ImportDefaultSpecifier') { | ||
@@ -48,0 +61,0 @@ return; |
@@ -63,3 +63,3 @@ { | ||
}, | ||
"version": "3.5.0" | ||
"version": "3.5.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
459897
3081