From b31ab8abf949661a4140eaae1fb7955344bbb050 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 21 Nov 2023 18:15:44 +0700 Subject: [PATCH] `no-unused-vars`: Allow ignoring variables by prefixing with underscore --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index def0046..bedadca 100644 --- a/index.js +++ b/index.js @@ -239,6 +239,7 @@ module.exports = { 'error', { vars: 'all', + varsIgnorePattern: /^_/.source, args: 'after-used', ignoreRestSiblings: true, argsIgnorePattern: /^_/.source,