Skip to content

Commit f842c20

Browse files
refactor(NODE-5916): enforce return-await (#4058)
Co-authored-by: Bailey Pearson <[email protected]>
1 parent 2634ea3 commit f842c20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1550
-442
lines changed

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"prettier",
1212
"unused-imports",
1313
"tsdoc",
14-
"mocha"
14+
"mocha",
15+
"github"
1516
],
1617
"extends": [
1718
"eslint:recommended",
@@ -212,7 +213,7 @@
212213
}
213214
},
214215
{
215-
// Settings for typescript test files
216+
// Settings for typescript src files
216217
"files": [
217218
"src/**/*.ts"
218219
],
@@ -237,8 +238,9 @@
237238
"no-return-await": "off",
238239
"@typescript-eslint/return-await": [
239240
"error",
240-
"in-try-catch"
241+
"always"
241242
],
243+
"github/no-then": "error",
242244
"no-restricted-imports": [
243245
"error",
244246
{

0 commit comments

Comments
 (0)