(projectName?: string)
| 169 | } |
| 170 | |
| 171 | export function configureJsDocsPlugin(projectName?: string): CoreConfig { |
| 172 | const patterns: string[] = [ |
| 173 | `packages/${projectName ?? '*'}/src/**/*.ts`, |
| 174 | `!**/node_modules`, |
| 175 | `!**/{mocks,mock}`, |
| 176 | `!**/*.{spec,test}.ts`, |
| 177 | `!**/implementation/**`, |
| 178 | `!**/internal/**`, |
| 179 | ]; |
| 180 | return { |
| 181 | plugins: [jsDocsPlugin(patterns)], |
| 182 | categories: [ |
| 183 | { |
| 184 | slug: 'docs', |
| 185 | title: 'Documentation', |
| 186 | description: 'Measures how much of your code is **documented**.', |
| 187 | refs: [ |
| 188 | { |
| 189 | type: 'group', |
| 190 | plugin: 'jsdocs', |
| 191 | slug: 'documentation-coverage', |
| 192 | weight: 1, |
| 193 | }, |
| 194 | ], |
| 195 | }, |
| 196 | ], |
| 197 | }; |
| 198 | } |
| 199 | |
| 200 | export async function configureLighthousePlugin( |
| 201 | urls: PluginUrls, |
no test coverage detected