New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eslint-react/core

Package Overview
Dependencies
Maintainers
1
Versions
1226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-react/core - npm Package Compare versions

Comparing version

to
1.38.1-beta.3

6

dist/index.d.ts

@@ -263,4 +263,4 @@ import { RuleContext } from '@eslint-react/kit';

declare function isFunctionOfUseEffectSetup(node: TSESTree.Node | _): boolean | undefined;
declare function isFunctionOfUseEffectCleanup(node: TSESTree.Node | _): boolean | undefined;
declare function isFunctionOfUseEffectSetup(node: TSESTree.Node | _): boolean;
declare function isFunctionOfUseEffectCleanup(node: TSESTree.Node | _): boolean;

@@ -290,3 +290,3 @@ interface ERHook extends ERSemanticNode {

declare function isReactHook(node: AST.TSESTreeFunction | _): boolean | undefined;
declare function isReactHook(node: AST.TSESTreeFunction | _): boolean;
/**

@@ -293,0 +293,0 @@ * Check if the given node is a React Hook call by its name.

@@ -666,3 +666,3 @@ 'use strict';

function isReactHook(node) {
if (node == null) return eff._;
if (node == null) return false;
const id = AST6__namespace.getFunctionIdentifier(node);

@@ -1206,7 +1206,7 @@ return id?.name != null && isReactHookName(id.name);

function isFunctionOfUseEffectSetup(node) {
if (node == null) return eff._;
if (node == null) return false;
return node.parent?.type === types.AST_NODE_TYPES.CallExpression && node.parent.callee !== node && node.parent.callee.type === types.AST_NODE_TYPES.Identifier && node.parent.arguments.at(0) === node && isUseEffectCallLoose(node.parent);
}
function isFunctionOfUseEffectCleanup(node) {
if (node == null) return eff._;
if (node == null) return false;
const returnStatement = AST6__namespace.findParentNode(node, AST6__namespace.is(types.AST_NODE_TYPES.ReturnStatement));

@@ -1213,0 +1213,0 @@ const enclosingFunction = AST6__namespace.findParentNode(node, AST6__namespace.isFunction);

{
"name": "@eslint-react/core",
"version": "1.38.1-beta.1",
"version": "1.38.1-beta.3",
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",

@@ -44,8 +44,8 @@ "homepage": "https://github.com/Rel1cx/eslint-react",

"ts-pattern": "^5.6.2",
"@eslint-react/ast": "1.38.1-beta.1",
"@eslint-react/eff": "1.38.1-beta.1",
"@eslint-react/jsx": "1.38.1-beta.1",
"@eslint-react/kit": "1.38.1-beta.1",
"@eslint-react/var": "1.38.1-beta.1",
"@eslint-react/shared": "1.38.1-beta.1"
"@eslint-react/ast": "1.38.1-beta.3",
"@eslint-react/eff": "1.38.1-beta.3",
"@eslint-react/kit": "1.38.1-beta.3",
"@eslint-react/jsx": "1.38.1-beta.3",
"@eslint-react/var": "1.38.1-beta.3",
"@eslint-react/shared": "1.38.1-beta.3"
},

@@ -52,0 +52,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet