From 2c7a25b7fce48c0c882deb489eef9267b31c79c8 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Mon, 3 Mar 2025 22:46:05 +0100 Subject: [PATCH] chore(eslint): add rule for unused vars this is already used across codebase: using "_" as placeholder for deliberately unused vars (e.g. when destructuring arrays) --- eslint.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index a0f099c48..55ad4d9a2 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -19,7 +19,15 @@ export default tseslint.config( { rules: { // add rule overrides here - "no-undef": "off" + "no-undef": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + } + ] } }, {