UNPKG

ccguard

Version:

Automated enforcement of net-negative LOC, complexity constraints, and quality standards for Claude code

26 lines 798 B
import { Formatter } from '../Formatter'; /** * Base implementation of the Formatter interface */ export declare abstract class BaseFormatter implements Formatter { /** * Get the file extension from a file path */ protected getFileExtension(filePath: string): string; /** * Default implementation of isSupported * Can be overridden by subclasses */ isSupported(filePath: string): boolean; /** * Get the list of supported file extensions * Must be implemented by subclasses */ protected abstract getSupportedExtensions(): string[]; /** * Format the content * Must be implemented by subclasses */ abstract format(content: string, filePath: string): Promise<string>; } //# sourceMappingURL=BaseFormatter.d.ts.map