From 987aa29930034a7a699e8d14986a390439ee9631 Mon Sep 17 00:00:00 2001 From: abcang Date: Sun, 12 Jul 2020 06:51:22 +0900 Subject: [PATCH] Enable promise/catch-or-return allowFinally (#14289) --- .eslintrc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 177496d3a3..7dda011082 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -199,6 +199,11 @@ module.exports = { 'import/no-unresolved': 'error', 'import/no-webpack-loader-syntax': 'error', - 'promise/catch-or-return': 'error', + 'promise/catch-or-return': [ + 'error', + { + allowFinally: true, + }, + ], }, };