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

Commit 221be43

Browse files
authored
fix: allow return await in try-catch block (#282)
This allows for correct async error handling behaviour Fixes #280
1 parent b90ce9f commit 221be43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shared.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ module.exports = {
208208
// Replace Airbnb 'no-return-await' rule with '@typescript-eslint' version
209209
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md
210210
'no-return-await': 'off',
211-
'@typescript-eslint/return-await': [baseBestPracticesRules['no-return-await'], 'never'],
211+
'@typescript-eslint/return-await': [baseBestPracticesRules['no-return-await'], 'in-try-catch'],
212212

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

0 commit comments

Comments
 (0)