Skip to content

Commit

Permalink
Enable promise/catch-or-return allowFinally (mastodon#14289)
Browse files Browse the repository at this point in the history
  • Loading branch information
abcang committed Jul 11, 2020
1 parent da3978c commit bb9d4e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .eslintrc.js
Expand Up @@ -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,
},
],
},
};

0 comments on commit bb9d4e2

Please sign in to comment.