aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-02-13 00:56:35 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-16 18:09:56 +0100
commit96c57fbfaa8c1644648fa1414c9ad131b1320b60 (patch)
tree097e354fb106a2f6e454970309cea0222ee98802 /.eslintrc.yaml
parent43b8ce4ce741a8a6a435e4073ca5a9ec188d4515 (diff)
downloadandroid-node-v8-96c57fbfaa8c1644648fa1414c9ad131b1320b60.tar.gz
android-node-v8-96c57fbfaa8c1644648fa1414c9ad131b1320b60.tar.bz2
android-node-v8-96c57fbfaa8c1644648fa1414c9ad131b1320b60.zip
lib: switch to Number.isNaN
Number.isNaN is now as fast as `val !== val`. Switch to the more readable version. Also switch all `isNaN` to `Number.isNaN`. PR-URL: https://github.com/nodejs/node/pull/18744 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 377f615e8a..a46caecf08 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -74,6 +74,7 @@ rules:
message: __defineSetter__ is deprecated.
no-return-await: error
no-self-assign: error
+ no-self-compare: error
no-throw-literal: error
no-unused-labels: error
no-useless-call: error