Angular Modernizer
    Preparing search index...

    Interface LayersSourceConfig

    External source for the layer topology of the architecture:layer-boundary-violation rule.

    Lets a project reuse an existing layer definition instead of duplicating it in .angular-modernizer.json. Currently supported: the ESM config module of an arch-validator script (export const CONFIG = { layers: { ... } }).

    Mapping (arch-validator -> LayerConfig): the layer key becomes name, paths becomes [key + '/**'], pathAlias becomes alias, allowedImports (other layer keys) becomes canImportFrom and level is kept.

    When both layers and layersSource are set, layersSource wins and a drift warning lists the differences.

    {
    * "format": "arch-validator",
    * "path": "tools/arch-validator/config.js",
    * "exportName": "CONFIG"
    * }
    interface LayersSourceConfig {
        exportName?: string;
        format: "arch-validator";
        path: string;
    }
    Index

    Properties

    exportName?: string

    Named export holding the config object.

    'CONFIG'
    
    format: "arch-validator"

    Format of the external source.

    path: string

    Path to the module, relative to the project root or absolute.