(answers: Record<string, PluginAnswer>)
| 73 | } satisfies PluginSetupBinding; |
| 74 | |
| 75 | function parseAnswers(answers: Record<string, PluginAnswer>): JsDocsOptions { |
| 76 | return { |
| 77 | patterns: answerNonEmptyArray( |
| 78 | answers, |
| 79 | 'jsdocs.patterns', |
| 80 | DEFAULT_PATTERNS[0], |
| 81 | ), |
| 82 | categories: answerBoolean(answers, 'jsdocs.categories'), |
| 83 | }; |
| 84 | } |
| 85 | |
| 86 | function formatPluginInit([first, ...rest]: [string, ...string[]]): string[] { |
| 87 | if (rest.length === 0) { |
no test coverage detected