eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
18 lines (17 loc) • 570 B
TypeScript
import { TSESLint } from '@typescript-eslint/utils'
import { SortVariableDeclarationsNode } from './types.js'
/**
* Computes the name of a variable declaration.
*
* @param props - The parameters object.
* @param props.sourceCode - ESLint source code object for text extraction.
* @param props.node - The AST node representing a variable declaration node.
* @returns The name of the variable declaration node.
*/
export declare function computeNodeName({
sourceCode,
node,
}: {
node: SortVariableDeclarationsNode
sourceCode: TSESLint.SourceCode
}): string