pull/10365/head
Rich Harris 3 years ago
parent 7f0216f791
commit f6edb436b7

@ -42,11 +42,13 @@ const types = fs.readFileSync(`${dir}/types/index.d.ts`, 'utf-8');
const bad_links = [...types.matchAll(/\]\((\/[^)]+)\)/g)];
if (bad_links.length > 0) {
// eslint-disable-next-line no-console
console.error(
`The following links in JSDoc annotations should be prefixed with https://svelte.dev:`
);
for (const [, link] of bad_links) {
// eslint-disable-next-line no-console
console.error(`- ${link}`);
}

Loading…
Cancel
Save