UNPKG

eslint-plugin-perfectionist

Version:

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

24 lines (23 loc) 774 B
import { RuleContext } from '@typescript-eslint/utils/ts-eslint' import { TSESTree } from '@typescript-eslint/types' import { Options } from './types.js' /** * Computes the matched context options for a given class node. * * @param params - Parameters. * @param params.matchedAstSelectors - The matched AST selectors for a class * node. * @param params.context - The rule context. * @returns The matched context options or undefined if none match. */ export declare function computeMatchedContextOptions< MessageIds extends string, >({ matchedAstSelectors, classElements, context, }: { context: Readonly<RuleContext<MessageIds, Options>> matchedAstSelectors: ReadonlySet<string> classElements: TSESTree.ClassElement[] }): Options[number] | undefined