MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / isCustomHookName

Function isCustomHookName

src/analyzers/react/index.ts:460–462  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

458}
459
460function isCustomHookName(name: string): boolean {
461 return /^use[A-Z0-9]/.test(name);
462}
463
464function isReactComponentSuperclass(node: TSESTree.ClassDeclaration): boolean {
465 const superClass = node.superClass;

Callers 1

summarizeReactProgramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected