UNPKG

eslint-plugin-perfectionist

Version:

ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

18 lines (17 loc) 549 B
import { TSESTree } from '@typescript-eslint/types' import { TSESLint } from '@typescript-eslint/utils' /** * Compute the name for a property-like node. * * @param params - Parameters. * @param params.node - Starting node to search from. * @param params.sourceCode - The source code object. * @returns The property or variable declaration name. */ export declare function computePropertyOrVariableDeclaratorName({ sourceCode, node, }: { node: TSESTree.VariableDeclarator | TSESTree.Property sourceCode: TSESLint.SourceCode }): string