style: ignore unused variables which begin with an underscore

This commit is contained in:
Tom French 2022-07-16 22:47:33 +01:00 committed by James Long
parent 80a2b34d43
commit bafa486668
2 changed files with 8 additions and 1 deletions

View file

@ -10,6 +10,13 @@ module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_'
}
],
'@typescript-eslint/no-var-requires': 'off'
}
};

View file

@ -1,4 +1,4 @@
async function middleware(err, req, res, next) {
async function middleware(err, req, res, _next) {
console.log('ERROR', err);
res.status(500).send({ status: 'error', reason: 'internal-error' });
}