From ffd124d49644ba6b1559003ba800a84935294fe3 Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Fri, 29 Nov 2024 10:48:04 +0000 Subject: [PATCH] extension: tight up TypeScript configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to detect unused variables and imports. Enforce that. Signed-off-by: Paul Jolly Change-Id: Id957bc54899d2dbe30fc0e60b8cd78fb1328f95b Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204932 TryBot-Result: CUEcueckoo Reviewed-by: Daniel Martí --- extension/tsconfig.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/extension/tsconfig.json b/extension/tsconfig.json index 8a79f20..8b7d954 100644 --- a/extension/tsconfig.json +++ b/extension/tsconfig.json @@ -7,10 +7,7 @@ ], "sourceMap": true, "rootDir": "src", - "strict": true /* enable all strict type-checking options */ - /* Additional Checks */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ + "strict": true, + "noUnusedLocals": true } }