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

Function getExtensionForFormat

tools/eslint-formatter-multi/src/lib/utils.ts:20–27  ·  view source on GitHub ↗
(format: EslintFormat)

Source from the content-addressed store, hash-verified

18}
19
20export function getExtensionForFormat(format: EslintFormat): string {
21 const extensionMap: Record<string, string> = {
22 json: 'json',
23 stylish: 'txt',
24 };
25
26 return extensionMap[format] || 'txt';
27}
28
29export function findConfigFromEnv(
30 env: NodeJS.ProcessEnv,

Callers 2

persistEslintReportFunction · 0.85
utils.unit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected