From 46bb5fdfb5aa39a0f10888cf65f83a1fed8db3c2 Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Wed, 5 Jun 2019 22:48:50 +0100 Subject: [PATCH] use tsc stronger checks for unused vars --- .eslintrc.json | 3 ++- tsconfig.json | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index df79b01a09..649b8dc46b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,7 +32,8 @@ }], "@typescript-eslint/no-object-literal-type-assertion": ["error", { "allowAsParameter": true - }] + }], + "@typescript-eslint/no-unused-vars": "off" }, "env": { "es6": true, diff --git a/tsconfig.json b/tsconfig.json index 9ac29a84fe..07bc24acaf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "declaration": true, "declarationDir": "types", "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "noEmitOnError": true, "lib": [ "es5",