From 6e33ff2b45542f2c271fad57a7c9ab33b41e9647 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 9 Nov 2024 16:40:25 -0600 Subject: [PATCH] tsconfig: enable noUnusedLocals --- src/features/compose/editor/plugins/link-plugin.tsx | 1 - tsconfig.json | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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,