File tree Expand file tree Collapse file tree 6 files changed +8
-66
lines changed
Expand file tree Collapse file tree 6 files changed +8
-66
lines changed Original file line number Diff line number Diff line change 7979- [ isCreateRef] ( functions/isCreateRef.md )
8080- [ isCreateRefCall] ( functions/isCreateRefCall.md )
8181- [ isDeclaredInRenderPropLoose] ( functions/isDeclaredInRenderPropLoose.md )
82- - [ isDisplayNameAssignment] ( functions/isDisplayNameAssignment.md )
8382- [ isForwardRef] ( functions/isForwardRef.md )
8483- [ isForwardRefCall] ( functions/isForwardRefCall.md )
8584- [ isFromReact] ( functions/isFromReact.md )
9493- [ isGetDerivedStateFromError] ( functions/isGetDerivedStateFromError.md )
9594- [ isGetDerivedStateFromProps] ( functions/isGetDerivedStateFromProps.md )
9695- [ isInitializedFromReact] ( functions/isInitializedFromReact.md )
97- - [ isInsideReactHook] ( functions/isInsideReactHook.md )
9896- [ isInsideRenderMethod] ( functions/isInsideRenderMethod.md )
9997- [ isInversePhase] ( functions/isInversePhase.md )
10098- [ isMemo] ( functions/isMemo.md )
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- export * from "./hierarchy" ;
21export * from "./hook-collector" ;
32export type * from "./hook-kind" ;
43export * from "./hook-name" ;
Original file line number Diff line number Diff line change 1- import type { _ } from "@eslint-react/eff" ;
2- import { AST_NODE_TYPES as T , type TSESTree } from "@typescript-eslint/types" ;
3-
41/**
52 * The ESQuery selector for a component display name assignment expression
63 */
@@ -17,11 +14,11 @@ export const DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
1714 * @param node The AST node
1815 * @returns `true` if the node is a component display name assignment
1916 */
20- export function isDisplayNameAssignment ( node : TSESTree . Node | _ ) : node is TSESTree . AssignmentExpression {
21- if ( node == null ) return false ;
22- return node . type === T . AssignmentExpression
23- && node . operator === "="
24- && node . left . type === T . MemberExpression
25- && node . left . property . type === T . Identifier
26- && node . left . property . name === "displayName" ;
27- }
17+ // export function isDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression {
18+ // if (node == null) return false;
19+ // return node.type === T.AssignmentExpression
20+ // && node.operator === "="
21+ // && node.left.type === T.MemberExpression
22+ // && node.left.property.type === T.Identifier
23+ // && node.left.property.name === "displayName";
24+ // }
You can’t perform that action at this time.
0 commit comments