summaryrefslogtreecommitdiff
path: root/lib/.eslintrc.yaml
diff options
context:
space:
mode:
authorZYSzys <zyszys98@gmail.com>2019-10-04 00:35:41 +0800
committerRich Trott <rtrott@gmail.com>2019-10-05 13:59:32 -0700
commit739f113ba63367a93e1567032d85573a079b97b5 (patch)
treefcb0a5be64a307f530024d0a192ec97580971cc5 /lib/.eslintrc.yaml
parentf0bee9b490e55ae93da1d1f8a485a4a432e61575 (diff)
downloadandroid-node-v8-739f113ba63367a93e1567032d85573a079b97b5.tar.gz
android-node-v8-739f113ba63367a93e1567032d85573a079b97b5.tar.bz2
android-node-v8-739f113ba63367a93e1567032d85573a079b97b5.zip
lib: introduce no-mixed-operators eslint rule to lib
PR-URL: https://github.com/nodejs/node/pull/29834 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/.eslintrc.yaml')
-rw-r--r--lib/.eslintrc.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml
index 824bd32980..b7e8e1f4fb 100644
--- a/lib/.eslintrc.yaml
+++ b/lib/.eslintrc.yaml
@@ -4,6 +4,9 @@ env:
rules:
prefer-object-spread: error
no-buffer-constructor: error
+ no-mixed-operators:
+ - error
+ - groups: [[ "&&", "||" ]]
no-restricted-globals:
- error
- name: JSON