stylelint-checkstyle-reporter
Version:
Output Checkstyle XML reports of stylelint results
18 lines (17 loc) • 469 B
TypeScript
import { XMLWriterOptions } from 'xmlbuilder2/lib/interfaces';
export interface CheckstyleError {
source: string;
line: number;
column: number;
severity: 'warning' | 'error';
message: string;
}
export declare class CheckstyleReport {
private builder;
private fileLevel;
constructor();
startFile(path: string): void;
endFile(): void;
addError(error: CheckstyleError): void;
generate(options?: XMLWriterOptions): string;
}