mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
build(backend): add nestjs-typed eslint plugin
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
e8e72c5328
commit
8daffbb11b
3 changed files with 25 additions and 4 deletions
|
@ -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',
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue