build(backend): add nestjs-typed eslint plugin

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-06-25 19:34:54 +02:00 committed by Tilman Vatteroth
parent e8e72c5328
commit 8daffbb11b
3 changed files with 25 additions and 4 deletions

View file

@ -39,12 +39,13 @@ module.exports = {
},
},
],
plugins: ['@typescript-eslint', 'jest', 'eslint-plugin-local-rules'],
plugins: ['@typescript-eslint', 'jest', 'eslint-plugin-local-rules','@darraghor/nestjs-typed'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'plugin:@darraghor/nestjs-typed/recommended'
],
root: true,
env: {
@ -87,5 +88,7 @@ module.exports = {
format: ['PascalCase'],
},
],
// We have our own OpenApi decorator and don't directly use the one from NestJS
'@darraghor/nestjs-typed/api-method-should-specify-api-response': 'off',
},
};