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:
parent
efe160862f
commit
ba1d36bcda
@ -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: '^_'
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user