From 473a54108366ed6551f5f46a29fb2bbeba4a1956 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Thu, 25 Jul 2024 13:53:59 +0200 Subject: [PATCH] Allow underscore variable to be unused --- configs/generic.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/generic.js b/configs/generic.js index e8f35d2..536144b 100644 --- a/configs/generic.js +++ b/configs/generic.js @@ -113,7 +113,10 @@ const generic = { ignoreRegExpLiterals: true, }, ], - 'no-unused-vars': 'warn', + 'no-unused-vars': [ + 'warn', + { varsIgnorePattern: '\\_' }, + ], 'no-alert': 'error', 'no-caller': 'error', 'no-confusing-arrow': [