From c57ac23760836db9f665237b69921864f192113e Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Fri, 1 Nov 2024 16:51:12 +0100 Subject: [PATCH] chore: update the type to reflect that the parent always exists --- .../extension-code-block-lowlight/src/code-block-lowlight.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/extension-code-block-lowlight/src/code-block-lowlight.ts b/packages/extension-code-block-lowlight/src/code-block-lowlight.ts index 3b952e329..c52fe3e14 100644 --- a/packages/extension-code-block-lowlight/src/code-block-lowlight.ts +++ b/packages/extension-code-block-lowlight/src/code-block-lowlight.ts @@ -16,7 +16,8 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions { export const CodeBlockLowlight = CodeBlock.extend({ addOptions() { return { - ...this.parent?.(), + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + ...this.parent!(), lowlight: {}, } },