eslint-plugin-react-refresh
Advanced tools
Comparing version 0.4.9 to 0.4.10
@@ -131,3 +131,9 @@ "use strict"; | ||
} else if (node.type === "CallExpression") { | ||
if (node.callee.type !== "Identifier" || !reactHOCs.has(node.callee.name)) { | ||
if (node.callee.type !== "Identifier") { | ||
if (node.callee.type === "MemberExpression" && node.callee.property.type === "Identifier" && reactHOCs.has(node.callee.property.name)) { | ||
mayHaveReactExport = true; | ||
} else { | ||
context.report({ messageId: "anonymousExport", node }); | ||
} | ||
} else if (!reactHOCs.has(node.callee.name)) { | ||
context.report({ messageId: "anonymousExport", node }); | ||
@@ -134,0 +140,0 @@ } else if (((_a = node.arguments[0]) == null ? void 0 : _a.type) === "FunctionExpression" && node.arguments[0].id) { |
{ | ||
"name": "eslint-plugin-react-refresh", | ||
"description": "Validate that your components can safely be updated with fast refresh", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"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
14459
237