UNPKG

eslint-plugin-ferramentas

Version:
26 lines (25 loc) 1.04 kB
import type { NonEmptyArray } from '../../utils'; import { type BaseRuleOptionInputTemplate } from '../Base'; import type { DebugRuleOption, DebugRuleOptionInput } from '../Debug'; type GroupsInput = Readonly<{ /** * Each import pair, if belonging to different groups, will be required to have a space between them * @example ['^src/utils.*$', '^(src/infrastructure.*|package.json)$'] */ groups: NonEmptyArray<string>; }>; type GroupsOutput = Readonly<{ groups: NonEmptyArray<RegExp>; }>; export type OptionsInput = BaseRuleOptionInputTemplate<GroupsInput & DebugRuleOptionInput>; export type Options = GroupsOutput & DebugRuleOption; export declare const mapGroups: ([input]: BaseRuleOptionInputTemplate<Readonly<{ /** * Each import pair, if belonging to different groups, will be required to have a space between them * @example ['^src/utils.*$', '^(src/infrastructure.*|package.json)$'] */ groups: NonEmptyArray<string>; }>>) => Readonly<{ groups: NonEmptyArray<RegExp>; }>; export {};