UNPKG

@slippy-lint/slippy

Version:

A simple but powerful linter for Solidity

21 lines (20 loc) 720 B
import { LintResult, RuleDefinition, SourceFile } from "./rules/types.js"; import { ConfigLoader } from "./config.js"; interface LintOptions { fix: boolean; } export declare class Linter { private configLoader; private ruleNameToRule; constructor(configLoader: ConfigLoader); /** * @returns A list of `LintResult`s in the same order of the corresponding file. */ lintFiles(files: SourceFile[], options: LintOptions): Promise<LintResult[]>; lintText(originalContent: string, filePath: string, options?: LintOptions): Promise<LintResult>; addRule(rule: RuleDefinition<any>): void; private getDiagnostics; private applyFixes; private registerBuiltInRules; } export {};