( out: Array<JSDocModelDiagnostic>, range: [number, number], diagnostics: ReadonlyArray<JSDocDiagnostic> )
| 2549 | diagnostics.push(diagnostic( |
| 2550 | "example-import-style", |
| 2551 | `JSDoc examples should import ${ |
| 2552 | Array.from(flatModule.names).map((name) => `\`${name}\``).join(", ") |
| 2553 | } from "${flatModule.barrelModule}" instead of "${source}"` |
| 2554 | )) |
| 2555 | continue |
| 2556 | } |
| 2557 | if (clause.namedBindings !== undefined && ts.isNamespaceImport(clause.namedBindings)) { |
| 2558 | if (namedAllowed !== undefined || namedModule !== undefined) { |
| 2559 | diagnostics.push(diagnostic("example-import-style", `JSDoc examples should use named imports from "${source}"`)) |
| 2560 | } |
no test coverage detected
searching dependent graphs…