(format: EslintFormat)
| 18 | } |
| 19 | |
| 20 | export 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 | |
| 29 | export function findConfigFromEnv( |
| 30 | env: NodeJS.ProcessEnv, |
no outgoing calls
no test coverage detected