eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
14 lines (13 loc) • 475 B
TypeScript
import { TSESLint } from '@typescript-eslint/utils'
import { SortEnumsSortingNode } from './types.js'
type SortingNodeWithoutDependencies = Omit<SortEnumsSortingNode, 'dependencies'>
export declare function computeDependenciesBySortingNode({
sortingNodes,
sourceCode,
enumName,
}: {
sortingNodes: SortingNodeWithoutDependencies[]
sourceCode: TSESLint.SourceCode
enumName: string
}): Map<SortingNodeWithoutDependencies, SortingNodeWithoutDependencies[]>
export {}