Socket
Socket
Sign inDemoInstall

eslint-plugin-flowtype

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-flowtype - npm Package Compare versions

Comparing version 3.5.0 to 3.5.1

13

dist/rules/typeImportStyle.js

@@ -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;

2

package.json

@@ -63,3 +63,3 @@ {

},
"version": "3.5.0"
"version": "3.5.1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc