From bfa437174200e6fe4afd5bacb4adac9d84aa2fab Mon Sep 17 00:00:00 2001 From: Igor Shadurin Date: Fri, 27 Oct 2023 13:54:51 +0300 Subject: [PATCH] feat: enforce await-thenable eslint rule and update tsconfig.test.json --- .eslintrc.js | 1 + tsconfig.test.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index ecb60225..8de545e6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,6 +14,7 @@ module.exports = { }, plugins: ['jest', 'unused-imports'], rules: { + '@typescript-eslint/await-thenable': 'error', 'array-bracket-newline': ['error', 'consistent'], strict: ['error', 'safe'], 'block-scoped-var': 'error', diff --git a/tsconfig.test.json b/tsconfig.test.json index 816cd689..04dc2493 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -3,7 +3,8 @@ "include": [ "src", "test", - "jest.config.ts" + "jest.config.ts", + ".eslintrc.js", ], "compilerOptions": { "noEmit": true,