From 539b45282b8707196a836634c68be4f6ade5c05c Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 26 Feb 2023 12:40:44 +0100 Subject: [PATCH] allow floating promises if explicitly defined --- backend/.eslintrc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/.eslintrc.js b/backend/.eslintrc.js index 33a4fb658..9c1097f53 100644 --- a/backend/.eslintrc.js +++ b/backend/.eslintrc.js @@ -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'],