diff --git a/src/features/compose/editor/plugins/link-plugin.tsx b/src/features/compose/editor/plugins/link-plugin.tsx index fac30f66c..41a343fb5 100644 --- a/src/features/compose/editor/plugins/link-plugin.tsx +++ b/src/features/compose/editor/plugins/link-plugin.tsx @@ -5,7 +5,6 @@ */ import { LinkPlugin as LexicalLinkPlugin } from '@lexical/react/LexicalLinkPlugin'; -import * as React from 'react'; // Source: https://stackoverflow.com/a/8234912/2013580 const urlRegExp = new RegExp( diff --git a/tsconfig.json b/tsconfig.json index c48e67690..bda772735 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "jsx": "react-jsx", "allowJs": true, "isolatedModules": true, + "noUnusedLocals": true, "moduleResolution": "Bundler", "resolveJsonModule": true, "esModuleInterop": true,