(node: ts.Node)
| 2541 | if (namespaceModule !== undefined) { |
| 2542 | diagnostics.push(diagnostic( |
| 2543 | "example-import-style", |
| 2544 | `JSDoc examples should use \`import { ${namespaceModule.name} } from "${namespaceModule.barrelModule}"\` instead of importing from "${source}"` |
| 2545 | )) |
| 2546 | continue |
| 2547 | } |
| 2548 | if (flatModule !== undefined) { |
| 2549 | diagnostics.push(diagnostic( |
| 2550 | "example-import-style", |
| 2551 | `JSDoc examples should import ${ |
| 2552 | Array.from(flatModule.names).map((name) => `\`${name}\``).join(", ") |
no test coverage detected
searching dependent graphs…