From aaac4883e38b2f200c78ba0aedbfa63a6b13f523 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 2 May 2023 11:24:36 -0400 Subject: [PATCH] Add floating promises eslint rule --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 36e895e51..aad915afd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -203,6 +203,9 @@ module.exports = { './src/**/*.ts', './src/**/*.tsx' ], + parserOptions: { + project: ['./tsconfig.json'] + }, env: { node: false, amd: true, @@ -240,6 +243,9 @@ module.exports = { 'TaskButton': 'writable', 'UserParentalControlPage': 'writable', 'Windows': 'readonly' + }, + rules: { + '@typescript-eslint/no-floating-promises': ['error'] } }, // TypeScript source files