Browse Source

Enable promise/catch-or-return allowFinally (#14289)

abcang 3 years ago
parent
commit
bb9d4e2776
1 changed files with 6 additions and 1 deletions
  1. 6 1
      .eslintrc.js

+ 6 - 1
.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,
+      },
+    ],
   },
 };