eslint-plugin-tis-imports
Version:
Eslint plugin for precise control of architectural restrictions. FSD, public api, hierarchy of entities in the project.
23 lines (22 loc) • 746 B
TypeScript
export type LayerImportsRuleOptions = {
alias?: string;
layers?: string[];
publicApiEnabled?: boolean;
notStrictLayers?: string[];
publicApiExcludeLayers?: string[];
checkRelativePathLayers?: string[];
};
export type CachedLayerImportsRuleOptions = {
alias: string;
layers: string[];
publicApiEnabled: boolean;
layersSet: Set<string>;
layersOrderMap: Map<string, number>;
notStrictLayers?: string[];
notStrictLayersSet?: Set<string>;
publicApiExcludeLayers?: string[];
publicApiExcludeLayersSet?: Set<string>;
checkRelativePathLayers?: string[];
checkRelativePathLayersSet?: Set<string>;
};
export type LayerImportError = 'sameLayerAlias' | 'wrongDirection' | 'publicApiError';