From f00eeaf1ddf1d7991e1f7623f463636cc6d1bdbf Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Mon, 22 Mar 2021 16:14:58 +0200 Subject: [PATCH] suppress lint error if unused var starts with _ --- .eslintrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index f1d3fa1b1..d4000e3d2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -69,7 +69,12 @@ "no-trailing-spaces": "error", "no-useless-concat": "error", "no-unreachable": "error", - "no-unused-vars": "error", + "no-unused-vars": [ + "error", + { + "varsIgnorePattern": "_" + } + ], "prefer-const": "error", "quotes": [ "error",