Allowed underscore prefixed unused params

With TypeScript, when creating mock instances, it's preferable to maintain a
reference to the params, even if they're not used. This allows us to have
unused variables as long as they're prefixed with an underscore.
This commit is contained in:
Fabien O'Carroll 2024-05-15 12:21:55 +07:00 committed by Fabien 'egg' O'Carroll
parent efe160862f
commit ba1d36bcda

View File

@ -6,6 +6,14 @@ module.exports = {
],
rules: {
// disable file naming rule in favor or dotted notation e.g. `snippets.service.ts`
'ghost/filenames/match-exported-class': [0, null, true]
'ghost/filenames/match-exported-class': [0, null, true],
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
]
}
};