UNPKG

eslint-plugin-perfectionist

Version:

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

19 lines (18 loc) 625 B
import { RegexOption } from '../../types/common-options.js' /** * Checks if all node names match the specified pattern. * * @param params - The parameters object. * @param params.allNamesMatchPattern - The pattern to match against all node * names. * @param params.nodeNames - Array of node names to test against patterns. * @returns True if all node names match the specified pattern, or if no pattern * is specified; otherwise, false. */ export declare function passesAllNamesMatchPatternFilter({ allNamesMatchPattern, nodeNames, }: { allNamesMatchPattern?: RegexOption nodeNames: string[] }): boolean