Ghost/ghost/ghost/.eslintrc.js
Fabien O'Carroll ba1d36bcda 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.
2024-05-15 12:41:34 +07:00

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