diff --git a/packages/eslint-config-payload/eslint-config/index.js b/packages/eslint-config-payload/eslint-config/index.js index 2185a9d1563..d77a972468d 100644 --- a/packages/eslint-config-payload/eslint-config/index.js +++ b/packages/eslint-config-payload/eslint-config/index.js @@ -52,7 +52,18 @@ module.exports = { 'class-methods-use-this': 'off', // By default, it errors for unused variables. This is annoying, warnings are enough. - '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + vars: 'all', + args: 'after-used', + ignoreRestSiblings: false, + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^ignore', + }, + ], '@typescript-eslint/no-use-before-define': 'off', 'arrow-body-style': 0,