You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@eslint-react/core

Package Overview
Dependencies
Maintainers
1
Versions
2385
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
3.0.0-next.81
to
3.0.0-next.82
+1
-0
dist/index.d.ts

@@ -95,2 +95,3 @@ import * as ast from "@eslint-react/ast";

declare const ComponentDetectionHint: {
readonly DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback: bigint;
readonly DoNotIncludeFunctionDefinedAsArrayFlatMapCallback: bigint;

@@ -97,0 +98,0 @@ readonly DoNotIncludeFunctionDefinedAsArrayMapCallback: bigint;

@@ -1184,2 +1184,3 @@ import * as ast from "@eslint-react/ast";

...JsxDetectionHint,
DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback: 1n << 18n,
DoNotIncludeFunctionDefinedAsArrayFlatMapCallback: 1n << 17n,

@@ -1196,3 +1197,3 @@ DoNotIncludeFunctionDefinedAsArrayMapCallback: 1n << 16n,

*/
const DEFAULT_COMPONENT_DETECTION_HINT = 0n | ComponentDetectionHint.DoNotIncludeJsxWithBigIntValue | ComponentDetectionHint.DoNotIncludeJsxWithBooleanValue | ComponentDetectionHint.DoNotIncludeJsxWithNumberValue | ComponentDetectionHint.DoNotIncludeJsxWithStringValue | ComponentDetectionHint.DoNotIncludeJsxWithUndefinedValue | ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback | ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayMapCallback | ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayExpression | ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayPattern | ComponentDetectionHint.RequireAllArrayElementsToBeJsx | ComponentDetectionHint.RequireBothBranchesOfConditionalExpressionToBeJsx | ComponentDetectionHint.RequireBothSidesOfLogicalExpressionToBeJsx;
const DEFAULT_COMPONENT_DETECTION_HINT = 0n | ComponentDetectionHint.DoNotIncludeJsxWithBigIntValue | ComponentDetectionHint.DoNotIncludeJsxWithBooleanValue | ComponentDetectionHint.DoNotIncludeJsxWithNumberValue | ComponentDetectionHint.DoNotIncludeJsxWithStringValue | ComponentDetectionHint.DoNotIncludeJsxWithUndefinedValue | ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback | ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback | ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayMapCallback | ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayExpression | ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayPattern | ComponentDetectionHint.RequireAllArrayElementsToBeJsx | ComponentDetectionHint.RequireBothBranchesOfConditionalExpressionToBeJsx | ComponentDetectionHint.RequireBothSidesOfLogicalExpressionToBeJsx;
/**

@@ -1234,2 +1235,5 @@ * Determine if a function node represents a valid React component definition

break;
case getFunctionComponentId(context, node) == null && node.parent.type === AST_NODE_TYPES.CallExpression && !isComponentWrapperCallLoose(context, node.parent) && !isCreateElementCall(context, node.parent):
if (hint & ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback) return false;
break;
}

@@ -1236,0 +1240,0 @@ const significantParent = ast.findParentNode(node, ast.isOneOf([

+6
-6
{
"name": "@eslint-react/core",
"version": "3.0.0-next.81",
"version": "3.0.0-next.82",
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",

@@ -37,10 +37,10 @@ "homepage": "https://github.com/Rel1cx/eslint-react",

"ts-pattern": "^5.9.0",
"@eslint-react/ast": "3.0.0-next.81",
"@eslint-react/shared": "3.0.0-next.81",
"@eslint-react/var": "3.0.0-next.81"
"@eslint-react/ast": "3.0.0-next.82",
"@eslint-react/shared": "3.0.0-next.82",
"@eslint-react/var": "3.0.0-next.82"
},
"devDependencies": {
"tsdown": "^0.21.0",
"@local/configs": "0.0.0",
"@local/eff": "3.0.0-beta.72"
"@local/eff": "3.0.0-beta.72",
"@local/configs": "0.0.0"
},

@@ -47,0 +47,0 @@ "peerDependencies": {