@ton-ai-core/vibecode-linter
Version:
Advanced TypeScript linter with Git integration, dependency analysis, and comprehensive error reporting
19 lines • 803 B
TypeScript
/**
* Tries to extract stdout from external tool error.
* If stdout exists, returns it. Otherwise, re-throws the error.
*
* CHANGE: Extracted common pattern from biome.ts and eslint.ts
* WHY: Both linters use identical error recovery logic (8 line duplicate)
* QUOTE(JSCPD): "DUPLICATE #1: src/shell/linters/biome.ts:109-116 ↔ eslint.ts:117-125"
* REF: jscpd duplicate detection
*
* @param error Error from external tool execution (unknown from catch blocks)
* @returns stdout string if available
* @throws Error if stdout is not available
*
* @pure false - throws errors
* @invariant (∃ stdout ∈ error) → returns string, otherwise throws Error
* @complexity O(1)
*/
export declare function extractStdoutOrThrow(error: Error): string;
//# sourceMappingURL=linter-helpers.d.ts.map