From dba09542f9c9ba185d949cb1273742f4a766f789 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 3 Nov 2021 06:52:04 -0700 Subject: [PATCH] Enforce promise chains lint Summary: Setting the lint level to error and fixing the last three violations. Reviewed By: nikoant Differential Revision: D32109025 fbshipit-source-id: 213ecaa17317f665ac5a192682fa06d182c28581 --- desktop/.eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.js index 5cb187b52..7c2b64fe0 100644 --- a/desktop/.eslintrc.js +++ b/desktop/.eslintrc.js @@ -107,7 +107,7 @@ module.exports = { 'communist-spelling/communist-spelling': [1, {allow: ['cancelled']}], // promise rules, see https://github.com/xjamundx/eslint-plugin-promise for details on each of them - 'promise/catch-or-return': 'warn', + 'promise/catch-or-return': 'error', 'promise/no-nesting': 'warn', 'promise/no-promise-in-callback': 'warn', 'promise/no-callback-in-promise': 'warn',