UNPKG

woaru

Version:

Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language

76 lines 2.17 kB
import { HybridBasePlugin } from './HybridBasePlugin'; /** * EslintPlugin - Data-driven ESLint integration with hybrid architecture * * Core Logic: Secure plugin implementation * Configuration: Dynamically loaded from tools.json */ export declare class EslintPlugin extends HybridBasePlugin { private databaseManager; constructor(); getName(): string; getSupportedExtensions(): string[]; canHandleFile(filePath: string): Promise<boolean>; /** * Runs ESLint with dynamically loaded configuration from tools.json */ runLinter(filePath: string, options?: { fix?: boolean; }): Promise<{ success: boolean; output: string; hasErrors: boolean; hasWarnings: boolean; }>; /** * Gets framework-specific ESLint configuration from database */ getFrameworkSpecificConfig(framework: string): Promise<Record<string, unknown>>; /** * Checks if ESLint has deprecated configuration */ checkDeprecationWarnings(): Promise<{ isDeprecated: boolean; warning?: string; successor?: string; migrationGuide?: string; }>; /** * Gets recommended ESLint packages for installation */ getRecommendedPackages(projectContext: { hasTypeScript: boolean; hasReact: boolean; hasNext: boolean; framework?: string; }): Promise<string[]>; /** * Builds ESLint command with dynamic flags from database */ private buildEslintCommand; /** * Executes ESLint command securely */ private executeESLint; /** * Default ESLint execution (fallback when database unavailable) */ private runEslintDefault; /** * Gets default packages when database is unavailable */ private getDefaultPackages; /** * Gets framework-specific ESLint packages */ private getFrameworkSpecificPackages; /** * Gets framework-specific ESLint plugins */ private getFrameworkPlugins; /** * Gets framework-specific ESLint rules */ private getFrameworkRules; } //# sourceMappingURL=EslintPlugin.d.ts.map