From 676acd4ed12ca3063440273b7146072e54bb2742 Mon Sep 17 00:00:00 2001 From: Thomas Ip Date: Mon, 3 Jun 2019 12:18:20 +0800 Subject: [PATCH] eslint: Allow unused variables with _ prefix in typescript. --- .eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3dec5a3fea..04a549c1a4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -425,6 +425,7 @@ "func-call-spacing": 0, "no-magic-numbers": 0, "semi": 0, + "no-unused-vars": 0, "@typescript-eslint/adjacent-overload-signatures": 2, "@typescript-eslint/array-type": 2, @@ -461,7 +462,7 @@ "@typescript-eslint/no-type-alias": 0, "@typescript-eslint/no-unnecessary-qualifier": 2, "@typescript-eslint/no-unnecessary-type-assertion": 2, - "@typescript-eslint/no-unused-vars": 2, + "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" } ], "@typescript-eslint/no-use-before-define": 2, "@typescript-eslint/no-useless-constructor": 2, "@typescript-eslint/no-var-requires": 0,