MCPcopy Create free account
hub / github.com/TanStack/query / mapKeyNodeToBaseText

Function mapKeyNodeToBaseText

packages/eslint-plugin-query/src/utils/ast-utils.ts:221–229  ·  view source on GitHub ↗
(
    node: TSESTree.Node,
    sourceCode: Readonly<TSESLint.SourceCode>,
  )

Source from the content-addressed store, hash-verified

219 )
220 },
221 mapKeyNodeToBaseText(
222 node: TSESTree.Node,
223 sourceCode: Readonly<TSESLint.SourceCode>,
224 ) {
225 return ASTUtils.mapKeyNodeToText(node, sourceCode).replace(
226 /(?:\?(\.)|!)/g,
227 '$1',
228 )
229 },
230 isValidReactComponentOrHookName(
231 identifier: TSESTree.Identifier | null | undefined,
232 ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected