( format: EslintFormat | undefined, results: ESLint.LintResult[], )
| 65 | } |
| 66 | |
| 67 | export 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 | |
| 77 | export type EslintFormat = 'stylish' | 'json' | string; |
| 78 |
no test coverage detected