eslint-plugin-react-refresh
Advanced tools
Comparing version 0.4.12 to 0.4.13
@@ -132,3 +132,5 @@ "use strict"; | ||
} else if (node.type === "CallExpression") { | ||
if (node.callee.type !== "Identifier") { | ||
if (node.callee.type === "CallExpression" && node.callee.callee.type === "Identifier" && node.callee.callee.name === "connect") { | ||
mayHaveReactExport = true; | ||
} else if (node.callee.type !== "Identifier") { | ||
if (node.callee.type === "MemberExpression" && node.callee.property.type === "Identifier" && reactHOCs.has(node.callee.property.name)) { | ||
@@ -178,3 +180,3 @@ mayHaveReactExport = true; | ||
handleExportIdentifier( | ||
specifier.exported.name === "default" ? specifier.local : specifier.exported | ||
specifier.exported.type === "Identifier" && specifier.exported.name === "default" ? specifier.local : specifier.exported | ||
); | ||
@@ -181,0 +183,0 @@ } |
{ | ||
"name": "eslint-plugin-react-refresh", | ||
"description": "Validate that your components can safely be updated with fast refresh", | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
14963
244