Browse Source

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

main
abcang 1 year ago
committed by GitHub
parent
commit
bb9d4e2776
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .eslintrc.js

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

Loading…
Cancel
Save