MCPcopy
hub / github.com/htmlhint/HTMLHint / Formatter

Interface Formatter

src/cli/formatter.ts:62–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62export interface Formatter extends EventEmitter {
63 getSupported(): typeof arrSupportedFormatters
64 init(tmpHTMLHint: typeof IHTMLHint, tmpOptions: { nocolor?: boolean }): void
65 setFormat(format: string): void
66
67 emit(event: 'start'): boolean
68 emit(event: 'file', arg: FormatterFileEvent): boolean
69 emit(event: 'config', arg: FormatterConfigEvent): boolean
70 emit(event: 'end', arg: FormatterEndEvent): boolean
71
72 on(event: 'start', listener: () => void): this
73 on(event: 'file', listener: (event: FormatterFileEvent) => void): this
74 on(event: 'config', listener: (event: FormatterConfigEvent) => void): this
75 on(event: 'end', listener: (event: FormatterEndEvent) => void): this
76}
77
78const formatter: Formatter = new EventEmitter() as Formatter
79

Callers 14

htmlhint.tsFile · 0.80
htmlhint.tsFile · 0.65
htmlhint.tsFile · 0.80
hintTargetsFunction · 0.80
hintNextFunction · 0.80
getConfigFunction · 0.80
executable.spec.jsFile · 0.80
sarif.spec.jsFile · 0.80
htmlhint.tsFile · 0.80
walkPathFunction · 0.80
hintStdinFunction · 0.80
defaultFormatterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected