@slippy-lint/slippy
Version:
A simple but powerful linter for Solidity
16 lines (15 loc) • 532 B
TypeScript
import { LintResultToReport } from "../rules/types.js";
import { SlippyErrorCode } from "../errors.js";
export interface RunLinterSuccess {
lintResults: LintResultToReport[];
sourceIdToAbsolutePath: Record<string, string>;
}
interface RunLinterError {
code: SlippyErrorCode;
message: string;
hint?: string;
}
export type RunLinterResult = RunLinterSuccess | RunLinterError;
export default function runLinter(sourceId: string): Promise<RunLinterResult>;
export type RunLinterWorker = typeof runLinter;
export {};