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: {}, } },