eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
13 lines (12 loc) • 483 B
TypeScript
import { TSESTree } from '@typescript-eslint/types'
import { NodeNameDetails } from './types.js'
/**
* Computes the name details of an identifier.
*
* @param node - The node to compute the name details for.
* @returns An object containing the name, whether it has a private hash, and
* the name without the starting hash.
*/
export declare function computeIdentifierNameDetails(
node: TSESTree.PrivateIdentifier | TSESTree.Identifier | TSESTree.Literal,
): NodeNameDetails