diff options
author | Rich Trott <rtrott@gmail.com> | 2017-11-22 12:49:05 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-11-30 23:25:12 -0800 |
commit | 3327ce0dd2f1d7d6255deb13314fdd7e7a2fb8aa (patch) | |
tree | 32f849fc5bb75ac6464abb8228ef23c29f3edb64 /.eslintrc.yaml | |
parent | 929f343bb3c2f7847711fed7ddb79ec5cf97f9b7 (diff) | |
download | android-node-v8-3327ce0dd2f1d7d6255deb13314fdd7e7a2fb8aa.tar.gz android-node-v8-3327ce0dd2f1d7d6255deb13314fdd7e7a2fb8aa.tar.bz2 android-node-v8-3327ce0dd2f1d7d6255deb13314fdd7e7a2fb8aa.zip |
tools: enable no-return-await lint rule
Enable lint rule that prohibits unnecessary use of `await` with
`return`.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 0f46a7fbfa..da49eb8b4f 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -69,6 +69,7 @@ rules: message: __defineGetter__ is deprecated. - property: __defineSetter__ message: __defineSetter__ is deprecated. + no-return-await: error no-self-assign: error no-throw-literal: error no-unused-labels: error |