From 7da3b3ef9e0ad0f32121918a2703a85cb83a5bc4 Mon Sep 17 00:00:00 2001 From: ff6347 Date: Thu, 25 Apr 2024 18:03:35 +0200 Subject: [PATCH] feat(ts): Ignore underscored args and vars --- index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.js b/index.js index 4533635..41e36eb 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,18 @@ export default tseslint.config( ...tseslint.configs.strict, { rules: { + "@typescript-eslint/no-unused-vars": [ + "error", + { + args: "all", + argsIgnorePattern: "^_", + caughtErrors: "all", + caughtErrorsIgnorePattern: "^_", + destructuredArrayIgnorePattern: "^_", + varsIgnorePattern: "^_", + ignoreRestSiblings: true, + }, + ], "prefer-const": "error", curly: "error", "no-console": ["error", { allow: ["warn", "error"] }],