import-sort-style-module-and-prefix
Version:
An [import sort](https://github.com/renke/import-sort) style based on [`import-sort-style-module`](https://github.com/renke/import-sort/tree/master/packages/import-sort-style-module) that support extra groupings by path prefix.
13 lines (12 loc) • 420 B
TypeScript
import { IStyleAPI, IStyleItem } from "import-sort-style";
export declare enum PrefixGroupsPosition {
beforeAbsolute = "beforeAbsolute",
beforeBuiltins = "beforeBuiltins",
beforeRelative = "beforeRelative",
afterRelative = "afterRelative"
}
export interface Config {
position: PrefixGroupsPosition;
groupings: (string | string[])[];
}
export default function (styleApi: IStyleAPI): IStyleItem[];