Angular Modernizer
    Preparing search index...

    Plugin that registers the Angular analysis and transform rules of this package with the kernel.

    AngularPlugin.initialize loads .angular-modernizer.json from the project root: per-rule options under rules are passed to the rules that take a config, and parser.componentDecorators extends the decorator names that mark components (default Component).

    Each transform rule runs only when the plugin config sets the matching transformationType; see AngularPlugin.getTransformRules.

    Implements

    Index

    Constructors

    Properties

    author: "Angular Modernization Platform" = 'Angular Modernization Platform'

    Plugin author.

    description: "Provides Angular-specific analysis for best practices and performance" = 'Provides Angular-specific analysis for best practices and performance'

    Plugin description.

    name: "@angular-modernizer/plugin-angular" = '@angular-modernizer/plugin-angular'

    Unique plugin identifier (the npm package name).

    version: "0.1.0" = '0.1.0'

    Plugin version reported to the kernel. Fixed value, not read from package.json.

    Methods

    • Creates the 28 analysis rules of this plugin, configured from the loaded project configuration, and logs their IDs via console.info.

      Returns AnalysisRule[]

      New rule instances.

    • Loads the project configuration (rule options and component decorator names). A configuration that cannot be loaded is ignored and the rule defaults stay in effect.

      Parameters

      • kernel: IKernel

        Kernel instance; provides the project root.

      Returns Promise<void>