From 964516d3cfbe0773b9182fa3739514766330bd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Tue, 30 Apr 2024 11:31:22 +0200 Subject: [PATCH] fix: remove noUnused* TSConfig options TSConfig options prevent Angular from compiling the app. This is specifically harsh with the noUnused* rules, which require you to strictly remove any unused variables even in dev mode while testing. Since this case is already covered by ESLint, the TSConfig option was removed. --- configuration/tsconfig/tsconfig.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configuration/tsconfig/tsconfig.json b/configuration/tsconfig/tsconfig.json index b261bf43..8ece067a 100644 --- a/configuration/tsconfig/tsconfig.json +++ b/configuration/tsconfig/tsconfig.json @@ -19,15 +19,21 @@ "allowSyntheticDefaultImports": true, "noImplicitAny": true, "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "outDir": "../../../lib/", - "lib": ["ES2022", "DOM"], + "lib": [ + "ES2022", + "DOM" + ], "strict": true, "target": "ES2022" }, "ts-node": { "transpileOnly": true }, - "exclude": ["../../../app.js", "../../../lib/"] + "exclude": [ + "../../../app.js", + "../../../lib/" + ] }