UNPKG

eslint-plugin-perfectionist

Version:

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

18 lines (17 loc) 548 B
import { TSESTree } from '@typescript-eslint/types' import { TSESLint } from '@typescript-eslint/utils' /** * Computes the name of an array member. * * @param props - The parameters object. * @param props.sourceCode - ESLint source code object for text extraction. * @param props.node - The AST node representing an array member. * @returns The name of the array member. */ export declare function computeNodeName({ sourceCode, node, }: { node: TSESTree.SpreadElement | TSESTree.Expression sourceCode: TSESLint.SourceCode }): string