au-rogue
Version:
Conservative Aurelia 1 to 2 codemods. Changes only what is safe, reports everything.
20 lines (19 loc) • 694 B
TypeScript
import { Project } from 'ts-morph';
import { Reporter } from '../types.js';
/**
* Transforms Aurelia 1 lifecycle method names to Aurelia 2 equivalents
*
* Key changes:
* - unbind() → unbinding()
* - Adds async support recommendations
* - Detects new lifecycle hooks that need implementation
*/
export declare function transformLifecycle(project: Project, reporter: Reporter): void;
/**
* Detect and suggest new Aurelia 2 lifecycle hooks
*/
export declare function suggestNewLifecycleHooks(project: Project, reporter: Reporter): void;
/**
* Check for common lifecycle anti-patterns
*/
export declare function detectLifecycleAntiPatterns(project: Project, reporter: Reporter): void;