UNPKG

@perfective/eslint-config

Version:
29 lines (28 loc) 784 B
export type Match = string; export type Group = Match[]; /** * Configuration options for the `simple-import-sort/imports` rule. * * @since v0.11.0 */ export interface SimpleImportSortImports { groups: Group[]; } /** * Creates configuration for the `simple-import-sort/imports` ESLint rule. * * Allows to splice `internal` scope packages imports between the global and relative imports. * * @param internal - A list of internal scopes. Each scope is sorted in its own group. * * @since v0.11.0 */ export declare function simpleImportSortImports(internal?: string[]): SimpleImportSortImports; /** * @private */ export declare function scopedPackages(exclude: string[]): Group; /** * @private */ export declare function internalPackages(internal: string[]): Group[];