@reliverse/rse
Version:
@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power
28 lines (27 loc) • 973 B
TypeScript
import type { RseConfig } from "@reliverse/cfg";
/**
* Describes a lint suggestion with file details and a recommended fix or note.
*/
export interface LintSuggestion {
filePath: string;
startLine: number;
endLine: number;
suggestion: string;
severity: "error" | "warning" | "info";
}
/**
* Coordinates the relinter process. Accepts multiple target paths.
*/
export declare function agentRelinter(config: RseConfig, targetPaths: string[], task?: string): Promise<void>;
/**
* Collects a list of recognized code files from a path.
*/
export declare function collectLintableFiles(dirOrFile: string): Promise<string[]>;
/**
* Gathers lint suggestions for each file.
*/
export declare function gatherLintSuggestions(files: string[], task?: string, promptDecision?: boolean): Promise<LintSuggestion[]>;
/**
* Persists lint suggestions to a JSON file.
*/
export declare function writeSuggestionsToFile(suggestions: LintSuggestion[]): Promise<void>;