diff --git a/eslint.config.mjs b/eslint.config.mjs index 9bd3082a4..5a95e8fa0 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -119,12 +119,12 @@ export default [ }, { selector: 'CallExpression[callee.property.name="catch"] > ArrowFunctionExpression[params.length=0] > ArrayExpression[elements.length=0]', - message: "Usage of .catch(() => []) is not allowed. Please handle the error appropriately." + message: 'Usage of .catch(() => []) is not allowed. Please handle the error appropriately.', }, { selector: 'CallExpression[callee.property.name="catch"] > ArrowFunctionExpression[params.length=0] > BlockStatement[body.length=0]', - message: "Usage of .catch(() => {}) is not allowed. Please handle the error appropriately." - } + message: 'Usage of .catch(() => {}) is not allowed. Please handle the error appropriately.', + }, ], 'no-unneeded-ternary': 'error', @@ -160,6 +160,14 @@ export default [ }, ], + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'all', + argsIgnorePattern: '^_', + }, + ], + // unicorn 'unicorn/consistent-function-scoping': 'warn', 'unicorn/explicit-length-check': 'off',