MCPcopy Create free account
hub / github.com/code-pushup/cli / formatTerminalOutput

Function formatTerminalOutput

tools/eslint-formatter-multi/src/lib/utils.ts:67–75  ·  view source on GitHub ↗
(
  format: EslintFormat | undefined,
  results: ESLint.LintResult[],
)

Source from the content-addressed store, hash-verified

65}
66
67export function formatTerminalOutput(
68 format: EslintFormat | undefined,
69 results: ESLint.LintResult[],
70): string {
71 if (!format) {
72 return '';
73 }
74 return formatContent(results, format);
75}
76
77export type EslintFormat = 'stylish' | 'json' | string;
78

Callers 2

multipleFormatsFunction · 0.85
utils.unit.test.tsFile · 0.85

Calls 1

formatContentFunction · 0.85

Tested by

no test coverage detected