From 0e4f5a96389918395ac33e0a12994a5c360d96d8 Mon Sep 17 00:00:00 2001 From: e11sy Date: Wed, 3 Apr 2024 13:08:34 +0300 Subject: [PATCH] added ignore patterns ('^_') - added ingore patterns for array destruction, vars and args --- ts.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts.json b/ts.json index 27e34c0..090c854 100644 --- a/ts.json +++ b/ts.json @@ -18,7 +18,11 @@ "parser": "@typescript-eslint/parser", "rules": { "@typescript-eslint/no-unused-vars": ["error", { - "args": "after-used" + "args": "after-used", + "argsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "destructuredArrayIgnorePattern": "^_" }], "@typescript-eslint/interface-name-prefix": 0, "@typescript-eslint/no-empty-interface": 0,