Socket
Socket
Sign inDemoInstall

eslint-plugin-react-refresh

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-refresh - npm Package Compare versions

Comparing version 0.4.9 to 0.4.10

8

index.js

@@ -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) {

2

package.json
{
"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",

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