eslint-plugin-ferramentas
Version:
A bundle of useful ESLint rules
26 lines (25 loc) • 1.04 kB
TypeScript
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 {};