summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2020-07-12 06:51:22 +0900
committerGitHub <noreply@github.com>2020-07-11 23:51:22 +0200
commitbb9d4e2776ab1b655d63d8a661e2f5c997983bcf (patch)
treecafad6746b85246a1297d3d465d410f9f77b26bb /.eslintrc.js
parentda3978c48e620c0a6a658e81fecde49189cdf5f6 (diff)
Enable promise/catch-or-return allowFinally (#14289)
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 177496d3a3d..7dda0110821 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,
+ },
+ ],
},
};