From 6c9c9384cc0dab448532144070bf92a502fe4a6e Mon Sep 17 00:00:00 2001 From: TZGyn Date: Tue, 19 Sep 2023 06:20:40 +0800 Subject: [PATCH] Frontend update tsconfig to allow unused variables --- react-frontend/src/pages/dashboard.tsx | 1 - react-frontend/tsconfig.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/react-frontend/src/pages/dashboard.tsx b/react-frontend/src/pages/dashboard.tsx index e559338..e52578f 100644 --- a/react-frontend/src/pages/dashboard.tsx +++ b/react-frontend/src/pages/dashboard.tsx @@ -25,7 +25,6 @@ export default function Dashboard() { }) const data = (await response.json()).shorteners as Shortener[] - console.log(isLoading) setShorteners(data) setIsLoading(false) diff --git a/react-frontend/tsconfig.json b/react-frontend/tsconfig.json index d57034a..50a8e30 100644 --- a/react-frontend/tsconfig.json +++ b/react-frontend/tsconfig.json @@ -16,8 +16,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + // "noUnusedLocals": true, + // "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, "baseUrl": ".", "paths": {