Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
fix: allow return await in try-catch block (#282)
Browse files Browse the repository at this point in the history
This allows for correct async error handling behaviour

Fixes #280
  • Loading branch information
steven-g-w authored Mar 17, 2022
1 parent b90ce9f commit 221be43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ module.exports = {
// Replace Airbnb 'no-return-await' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md
'no-return-await': 'off',
'@typescript-eslint/return-await': [baseBestPracticesRules['no-return-await'], 'never'],
'@typescript-eslint/return-await': [baseBestPracticesRules['no-return-await'], 'in-try-catch'],

// Replace Airbnb 'space-infix-ops' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md
Expand Down

0 comments on commit 221be43

Please sign in to comment.