@eslint-react/core
Advanced tools
+13
-16
@@ -302,2 +302,14 @@ import * as ast from "@eslint-react/ast"; | ||
| //#region src/component/component-detection-legacy.d.ts | ||
| /** | ||
| * Check if a node is a React class component | ||
| * @param node The AST node to check | ||
| * @returns `true` if the node is a class component, `false` otherwise | ||
| */ | ||
| declare function isClassComponent(node: TSESTree.Node): node is ast.TSESTreeClass; | ||
| /** | ||
| * Check if a node is a React PureComponent | ||
| * @param node The AST node to check | ||
| * @returns `true` if the node is a PureComponent, `false` otherwise | ||
| */ | ||
| declare function isPureComponent(node: TSESTree.Node): boolean; | ||
| declare const isRender: (node: TSESTree.Node) => node is ast.TSESTreeMethodOrProperty; | ||
@@ -400,17 +412,2 @@ declare const isComponentDidCatch: (node: TSESTree.Node) => node is ast.TSESTreeMethodOrProperty; | ||
| //#endregion | ||
| //#region src/component/component-kind.d.ts | ||
| type ComponentKind = "class-component" | "pure-component" | "function-component"; | ||
| /** | ||
| * Check if a node is a React class component | ||
| * @param node The AST node to check | ||
| * @returns `true` if the node is a class component, `false` otherwise | ||
| */ | ||
| declare function isClassComponent(node: TSESTree.Node): node is ast.TSESTreeClass; | ||
| /** | ||
| * Check if a node is a React PureComponent | ||
| * @param node The AST node to check | ||
| * @returns `true` if the node is a PureComponent, `false` otherwise | ||
| */ | ||
| declare function isPureComponent(node: TSESTree.Node): boolean; | ||
| //#endregion | ||
| //#region src/component/component-name.d.ts | ||
@@ -876,2 +873,2 @@ /** | ||
| //#endregion | ||
| export { ClassComponentSemanticNode, ClientFunctionSemanticNode, ComponentDetectionHint, ComponentFlag, ComponentKind, ComponentSemanticNode, DEFAULT_COMPONENT_DETECTION_HINT, DEFAULT_JSX_DETECTION_HINT, FindEnclosingComponentOrHookFilter, FunctionComponentSemanticNode, FunctionKind, FunctionSemanticNode, HookSemanticNode, JsxAttributeValue, JsxConfig, JsxDetectionHint, JsxEmit, REACT_BUILTIN_HOOK_NAMES, SemanticFunc, SemanticNode, ServerFunctionSemanticNode, findEnclosingComponentOrHook, findParentJsxAttribute, getComponentFlagFromInitPath, getFunctionComponentId, getJsxAttribute, getJsxAttributeName, getJsxConfigFromAnnotation, getJsxConfigFromContext, getJsxElementType, getRefInit, isAssignmentToThisState, isCaptureOwnerStack, isCaptureOwnerStackCall, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDefinition, isComponentDidCatch, isComponentDidMount, isComponentDidMountCallback, isComponentDidUpdate, isComponentName, isComponentNameLoose, isComponentWillMount, isComponentWillReceiveProps, isComponentWillUnmount, isComponentWillUnmountCallback, isComponentWillUpdate, isComponentWrapperCall, isComponentWrapperCallLoose, isComponentWrapperCallback, isComponentWrapperCallbackLoose, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isForwardRef, isForwardRefCall, isFunctionWithLooseComponentName, isGetChildContext, isGetDefaultProps, isGetDerivedStateFromError, isGetDerivedStateFromProps, isGetInitialState, isGetSnapshotBeforeUpdate, isHook, isHookCall, isHookCallWithName, isHookId, isHookName, isInitializedFromReact, isInitializedFromReactNative, isInitializedFromRef, isInsideComponentOrHook, isJsxFragmentElement, isJsxHostElement, isJsxLike, isJsxText, isLazy, isLazyCall, isMemo, isMemoCall, isPureComponent, isReactAPI, isReactAPICall, isRefId, isRefLikeName, isRender, isRenderMethodCallback, isRenderMethodLike, isShouldComponentUpdate, isThisSetState, isUnsafeComponentWillMount, isUnsafeComponentWillReceiveProps, isUnsafeComponentWillUpdate, isUseActionStateCall, isUseCall, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCleanupCallback, isUseEffectLikeCall, isUseEffectSetupCallback, isUseFormStatusCall, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseOptimisticCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseStateLikeCall, isUseSyncExternalStoreCall, isUseTransitionCall, resolveJsxAttributeValue, stringifyJsx, useComponentCollector, useComponentCollectorLegacy, useHookCollector }; | ||
| export { ClassComponentSemanticNode, ClientFunctionSemanticNode, ComponentDetectionHint, ComponentFlag, ComponentSemanticNode, DEFAULT_COMPONENT_DETECTION_HINT, DEFAULT_JSX_DETECTION_HINT, FindEnclosingComponentOrHookFilter, FunctionComponentSemanticNode, FunctionKind, FunctionSemanticNode, HookSemanticNode, JsxAttributeValue, JsxConfig, JsxDetectionHint, JsxEmit, REACT_BUILTIN_HOOK_NAMES, SemanticFunc, SemanticNode, ServerFunctionSemanticNode, findEnclosingComponentOrHook, findParentJsxAttribute, getComponentFlagFromInitPath, getFunctionComponentId, getJsxAttribute, getJsxAttributeName, getJsxConfigFromAnnotation, getJsxConfigFromContext, getJsxElementType, getRefInit, isAssignmentToThisState, isCaptureOwnerStack, isCaptureOwnerStackCall, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDefinition, isComponentDidCatch, isComponentDidMount, isComponentDidMountCallback, isComponentDidUpdate, isComponentName, isComponentNameLoose, isComponentWillMount, isComponentWillReceiveProps, isComponentWillUnmount, isComponentWillUnmountCallback, isComponentWillUpdate, isComponentWrapperCall, isComponentWrapperCallLoose, isComponentWrapperCallback, isComponentWrapperCallbackLoose, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isForwardRef, isForwardRefCall, isFunctionWithLooseComponentName, isGetChildContext, isGetDefaultProps, isGetDerivedStateFromError, isGetDerivedStateFromProps, isGetInitialState, isGetSnapshotBeforeUpdate, isHook, isHookCall, isHookCallWithName, isHookId, isHookName, isInitializedFromReact, isInitializedFromReactNative, isInitializedFromRef, isInsideComponentOrHook, isJsxFragmentElement, isJsxHostElement, isJsxLike, isJsxText, isLazy, isLazyCall, isMemo, isMemoCall, isPureComponent, isReactAPI, isReactAPICall, isRefId, isRefLikeName, isRender, isRenderMethodCallback, isRenderMethodLike, isShouldComponentUpdate, isThisSetState, isUnsafeComponentWillMount, isUnsafeComponentWillReceiveProps, isUnsafeComponentWillUpdate, isUseActionStateCall, isUseCall, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCleanupCallback, isUseEffectLikeCall, isUseEffectSetupCallback, isUseFormStatusCall, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseOptimisticCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseStateLikeCall, isUseSyncExternalStoreCall, isUseTransitionCall, resolveJsxAttributeValue, stringifyJsx, useComponentCollector, useComponentCollectorLegacy, useHookCollector }; |
+1
-4
@@ -669,3 +669,3 @@ import { findImportSource, findProperty, findVariable, getVariableInitializer } from "@eslint-react/var"; | ||
| //#endregion | ||
| //#region src/component/component-kind.ts | ||
| //#region src/component/component-detection-legacy.ts | ||
| /** | ||
@@ -701,5 +701,2 @@ * Check if a node is a React class component | ||
| } | ||
| //#endregion | ||
| //#region src/component/component-detection-legacy.ts | ||
| /** | ||
@@ -706,0 +703,0 @@ * Create a lifecycle method checker function |
+6
-6
| { | ||
| "name": "@eslint-react/core", | ||
| "version": "3.0.0-beta.53", | ||
| "version": "3.0.0-beta.54", | ||
| "description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.", | ||
@@ -37,9 +37,9 @@ "homepage": "https://github.com/Rel1cx/eslint-react", | ||
| "ts-pattern": "^5.9.0", | ||
| "@eslint-react/ast": "3.0.0-beta.53", | ||
| "@eslint-react/eff": "3.0.0-beta.53", | ||
| "@eslint-react/var": "3.0.0-beta.53", | ||
| "@eslint-react/shared": "3.0.0-beta.53" | ||
| "@eslint-react/ast": "3.0.0-beta.54", | ||
| "@eslint-react/eff": "3.0.0-beta.54", | ||
| "@eslint-react/shared": "3.0.0-beta.54", | ||
| "@eslint-react/var": "3.0.0-beta.54" | ||
| }, | ||
| "devDependencies": { | ||
| "tsdown": "^0.20.3", | ||
| "tsdown": "^0.21.0-beta.1", | ||
| "@local/configs": "0.0.0" | ||
@@ -46,0 +46,0 @@ }, |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
91351
-0.22%2048
-0.24%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed