@eslint-react/core
Advanced tools
+1
-0
@@ -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; |
+5
-1
@@ -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": { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
100708
0.57%2378
0.21%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed