Allow unused underscore-prefixed variables

This commit is contained in:
Romein van Buren 2024-07-25 13:58:21 +02:00
parent 473a541083
commit 32393d68b1
No known key found for this signature in database

View File

@ -115,7 +115,19 @@ const generic = {
],
'no-unused-vars': [
'warn',
{ varsIgnorePattern: '\\_' },
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'no-alert': 'error',
'no-caller': 'error',