allow floating promises if explicitly defined

This commit is contained in:
Ulf Gebhardt 2023-02-26 12:40:44 +01:00
parent a998afb6d4
commit 539b45282b
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -27,6 +27,11 @@ module.exports = {
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:type-graphql/recommended',
],
// allow explicitly defined dangling promises
rules: {
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
'no-void': ['error', { allowAsStatement: true }],
},
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],