From 86bb03b80834f9c4a4ce15aded30513b62d29107 Mon Sep 17 00:00:00 2001 From: Sharon Gratch Date: Wed, 22 Jan 2025 19:52:53 +0200 Subject: [PATCH] [MTV-1935] Add ESLint rule for ignoring unused params with prefix underscore Reference: https://issues.redhat.com/browse/MTV-1935 Signed-off-by: Sharon Gratch --- packages/eslint-plugin/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/eslint-plugin/index.js b/packages/eslint-plugin/index.js index 80a9f071d..9c517482d 100644 --- a/packages/eslint-plugin/index.js +++ b/packages/eslint-plugin/index.js @@ -25,6 +25,7 @@ const base = { 'simple-import-sort', 'unused-imports', '@cspell', + '@typescript-eslint', ], rules: { @@ -54,6 +55,12 @@ const base = { autoFix: false, }, ], + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '^_', + }, + ], }, settings: {