Commit 6f4be7d4 authored by David Sveningsson's avatar David Sveningsson

feat(cli): new API to get validator instance

parent 9076f574
import HtmlValidate from "htmlvalidate";
import { Report } from "../reporter";
import { expandFiles, ExpandOptions } from "./expand-files";
import { getFormatter } from "./formatter";
......@@ -13,4 +14,8 @@ export class CLI {
public getFormatter(formatters: string): (report: Report) => string {
return getFormatter(formatters);
}
public getValidator(): HtmlValidate {
return new HtmlValidate();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment