UNPKG

eslint-plugin-perfectionist

Version:

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

15 lines (14 loc) 569 B
import { SortingNodeWithDependencies } from './sort-nodes-by-dependencies.js' /** * Checks whether the given sorting node has at least one of the given * dependency names. * * @param sortingNode - The sorting node to check. * @param dependencyNames - The dependency names to look for. * @returns True if the sorting node has at least one of the dependency names, * false otherwise. */ export declare function doesSortingNodeHaveOneOfDependencyNames( sortingNode: Pick<SortingNodeWithDependencies, 'dependencyNames'>, dependencyNames: string[], ): boolean