lint: ignore unused vars with _ prefix

This commit is contained in:
Roman Godmaire 2024-02-10 08:23:49 -05:00
parent b012b95e71
commit 860a3d210d

View file

@ -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: '^_'
}
]
}
};