diff --git a/components/apps/Messenger/SanitizedContent.tsx b/components/apps/Messenger/SanitizedContent.tsx index 22fb2cd2..0f61c5b1 100644 --- a/components/apps/Messenger/SanitizedContent.tsx +++ b/components/apps/Messenger/SanitizedContent.tsx @@ -1,4 +1,4 @@ -import { sanitize } from "dompurify"; +import DOMPurify from "dompurify"; import { useMemo } from "react"; import { convertImageLinksToHtml, @@ -21,7 +21,7 @@ const SanitizedContent: FC<{ content: string; decrypted: boolean }> = ({
{ return withStyledComponents(ctx); } - public render(): React.JSX.Element { + public override render(): React.JSX.Element { return ( diff --git a/tsconfig.json b/tsconfig.json index 7c93a4ad..163b222e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "allowJs": true, + "allowUnreachableCode": false, "baseUrl": ".", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, @@ -11,6 +12,7 @@ "module": "esnext", "moduleResolution": "node", "noEmit": true, + "noImplicitOverride": true, "noImplicitReturns": true, "plugins": [{ "name": "next" }], "resolveJsonModule": true,