Skip to content

Commit 053eba0

Browse files
Trottgibfahn
authored andcommitted
tools: enable no-return-await lint rule
Enable lint rule that prohibits unnecessary use of `await` with `return`. PR-URL: #17265 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 2af1bf5 commit 053eba0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ rules:
6666
message: __defineGetter__ is deprecated.
6767
- property: __defineSetter__
6868
message: __defineSetter__ is deprecated.
69+
no-return-await: error
6970
no-self-assign: error
7071
no-throw-literal: error
7172
no-unused-labels: error

0 commit comments

Comments
 (0)