ba1d36bcda
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.
20 lines
546 B
JavaScript
20 lines
546 B
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['ghost'],
|
|
extends: [
|
|
'plugin:ghost/ts'
|
|
],
|
|
rules: {
|
|
// disable file naming rule in favor or dotted notation e.g. `snippets.service.ts`
|
|
'ghost/filenames/match-exported-class': [0, null, true],
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_'
|
|
}
|
|
]
|
|
}
|
|
};
|