style: ignore unused variables which begin with an underscore
This commit is contained in:
parent
80a2b34d43
commit
bafa486668
2 changed files with 8 additions and 1 deletions
|
@ -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'
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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' });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue