UNPKG

eslint-plugin-perfectionist

Version:

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

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