From 4a72d84a46cc0398b033ba1399241b9cf00b14b4 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 4 May 2023 16:04:09 -0400 Subject: [PATCH] Change promise lint rules to error in ts and warn in js --- .eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index aad915afde..c089d3ac0e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -245,7 +245,7 @@ module.exports = { 'Windows': 'readonly' }, rules: { - '@typescript-eslint/no-floating-promises': ['error'] + '@typescript-eslint/no-floating-promises': ['warn'] } }, // TypeScript source files @@ -264,6 +264,8 @@ module.exports = { 'plugin:jsx-a11y/recommended' ], rules: { + '@typescript-eslint/no-floating-promises': ['error'], + 'sonarjs/cognitive-complexity': ['error'] } }