diff --git a/addons/docs/src/frameworks/svelte/svelte-docgen-loader.ts b/addons/docs/src/frameworks/svelte/svelte-docgen-loader.ts index d3c6ed23604..ca853d29ebc 100644 --- a/addons/docs/src/frameworks/svelte/svelte-docgen-loader.ts +++ b/addons/docs/src/frameworks/svelte/svelte-docgen-loader.ts @@ -1,5 +1,3 @@ -/* eslint-disable no-param-reassign */ -// @ts-ignore import svelteDoc from 'sveltedoc-parser'; import * as path from 'path'; @@ -10,6 +8,7 @@ import * as path from 'path'; */ export default async function svelteDocgen(source: string) { // get filename for source content + // eslint-disable-next-line no-underscore-dangle const file = path.basename(this._module.resource); // set SvelteDoc options diff --git a/addons/docs/src/frameworks/svelte/typings.d.ts b/addons/docs/src/frameworks/svelte/typings.d.ts new file mode 100644 index 00000000000..4655f7abf5f --- /dev/null +++ b/addons/docs/src/frameworks/svelte/typings.d.ts @@ -0,0 +1,3 @@ +declare module 'sveltedoc-parser' { + export function parse(options: any): Promise; +}