eslint-plugin-tis-imports
Version:
Eslint plugin for precise control of architectural restrictions. FSD, public api, hierarchy of entities in the project.
15 lines (14 loc) • 414 B
TypeScript
export type EnforceEntityHierarchyOptions = {
alias?: string;
checkingLayers?: string[];
hierarchy?: string[];
};
export type CachedEnforceEntityHierarchyOptions = {
alias: string;
checkingLayers: string[];
hierarchy: string[];
layersSet: Set<string>;
hierarchySet: Set<string>;
entityOrderMap: Map<string, number>;
};
export type EntityHierarchyError = 'wrongEntityDirection';