Angular Modernizer
    Preparing search index...

    Interface AngularModernizerConfig

    Complete Angular Modernizer configuration. Matches the schema at packages/core/schemas/angular-modernizer.schema.json

    Top-level sections:

    • build (required) — build and validation settings
    • validation — post-transformation validation options
    • pathAliases — TypeScript import path alias resolution
    • parser — parser strategy and false-positive detection
    • tools — per-MCP-tool configuration overrides
    • rules — per-analysis-rule configuration overrides
    interface AngularModernizerConfig {
        build: BuildConfig;
        layers?: LayerConfig[];
        layersSource?: LayersSourceConfig;
        parser?: ParserConfig;
        pathAliases?: PathAliasConfig;
        projectContext?: Record<string, unknown>;
        projectRoot?: string;
        rules?: RulesConfig;
        tools?: ToolsConfig;
        validation?: ConfigValidation;
    }
    Index

    Properties

    Build and validation configuration.

    layers?: LayerConfig[]

    Project-specific layer topology for the architecture:layer-boundary-violation rule.

    Each entry defines a named architectural layer, its import alias, the source directories that belong to it (as glob patterns), and which other layers it is allowed to import from.

    When this section is absent or empty the rule is silently disabled.

    [
    { "name": "core", "alias": "@core", "paths": ["src/app/core/**"], "canImportFrom": [] },
    { "name": "shared", "alias": "@shared", "paths": ["src/app/shared/**"], "canImportFrom": ["@core"] },
    { "name": "features", "alias": "@features", "paths": ["src/app/features/**"], "canImportFrom": ["@core","@shared"] }
    ]
    layersSource?: LayersSourceConfig

    External layer topology source (e.g. an arch-validator config.js). Loaded by the architecture plugin via dynamic import() and mapped to LayerConfig. Takes precedence over layers when both are set.

    { "format": "arch-validator", "path": "tools/arch-validator/config.js" }
    
    parser?: ParserConfig

    Parser configuration for code transformation and analysis.

    pathAliases?: PathAliasConfig

    Path alias resolution configuration.

    projectContext?: Record<string, unknown>

    Free-form project notes for agents and humans (migration goal, phase, extraction targets). Not read by the platform.

    projectRoot?: string

    Absolute path to the project root directory. Defaults to process.cwd() if not provided. Useful when MCP server runs in a different directory than the target project.

    '/path/to/my-angular-project'
    
    '/home/user/projects/my-angular-app'
    
    'C:\\Users\\user\\projects\\my-app'
    
    rules?: RulesConfig

    Rule-specific configuration overrides, keyed by rule ID. Used to customise detection thresholds and target lists for individual analysis rules.

    {
    "rules": {
    "angular:component-wrapper-instantiation": {
    "classNamePatterns": [".*WrapperComponent$"]
    }
    }
    }
    tools?: ToolsConfig

    Tool-specific configurations for all 21 MCP tools.

    validation?: ConfigValidation

    Validation configuration for transformations.