]> cat aescling's git repositories - mastodon.git/commitdiff
Enable promise/catch-or-return allowFinally (#14289)
authorabcang <abcang1015@gmail.com>
Sat, 11 Jul 2020 21:51:22 +0000 (06:51 +0900)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2020 21:51:22 +0000 (23:51 +0200)
.eslintrc.js

index 177496d3a3d5931643064e996fe524a9c17067ff..7dda01108218e56322e4369b7154113a2e8f6274 100644 (file)
@@ -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,
+      },
+    ],
   },
 };