diff --git a/plice/.eslintrc.cjs b/plice/.eslintrc.cjs index 4b29a01..551c581 100644 --- a/plice/.eslintrc.cjs +++ b/plice/.eslintrc.cjs @@ -26,5 +26,18 @@ module.exports = { parser: '@typescript-eslint/parser' } } - ] + ], + rules: { + // note you must disable the base rule + // as it can report incorrect errors + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_' + } + ] + } };