summaryrefslogtreecommitdiff
path: root/lib/internal/readline
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/internal/readline
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/internal/readline')
-rw-r--r--lib/internal/readline/utils.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/internal/readline/utils.js b/lib/internal/readline/utils.js
index f72a03bb39..31de512f74 100644
--- a/lib/internal/readline/utils.js
+++ b/lib/internal/readline/utils.js
@@ -108,30 +108,30 @@ if (internalBinding('config').hasIntl) {
code === 0x2329 || // LEFT-POINTING ANGLE BRACKET
code === 0x232a || // RIGHT-POINTING ANGLE BRACKET
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
- code >= 0x2e80 && code <= 0x3247 && code !== 0x303f ||
+ (code >= 0x2e80 && code <= 0x3247 && code !== 0x303f) ||
// Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
- code >= 0x3250 && code <= 0x4dbf ||
+ (code >= 0x3250 && code <= 0x4dbf) ||
// CJK Unified Ideographs .. Yi Radicals
- code >= 0x4e00 && code <= 0xa4c6 ||
+ (code >= 0x4e00 && code <= 0xa4c6) ||
// Hangul Jamo Extended-A
- code >= 0xa960 && code <= 0xa97c ||
+ (code >= 0xa960 && code <= 0xa97c) ||
// Hangul Syllables
- code >= 0xac00 && code <= 0xd7a3 ||
+ (code >= 0xac00 && code <= 0xd7a3) ||
// CJK Compatibility Ideographs
- code >= 0xf900 && code <= 0xfaff ||
+ (code >= 0xf900 && code <= 0xfaff) ||
// Vertical Forms
- code >= 0xfe10 && code <= 0xfe19 ||
+ (code >= 0xfe10 && code <= 0xfe19) ||
// CJK Compatibility Forms .. Small Form Variants
- code >= 0xfe30 && code <= 0xfe6b ||
+ (code >= 0xfe30 && code <= 0xfe6b) ||
// Halfwidth and Fullwidth Forms
- code >= 0xff01 && code <= 0xff60 ||
- code >= 0xffe0 && code <= 0xffe6 ||
+ (code >= 0xff01 && code <= 0xff60) ||
+ (code >= 0xffe0 && code <= 0xffe6) ||
// Kana Supplement
- code >= 0x1b000 && code <= 0x1b001 ||
+ (code >= 0x1b000 && code <= 0x1b001) ||
// Enclosed Ideographic Supplement
- code >= 0x1f200 && code <= 0x1f251 ||
+ (code >= 0x1f200 && code <= 0x1f251) ||
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
- code >= 0x20000 && code <= 0x3fffd
+ (code >= 0x20000 && code <= 0x3fffd)
);
};
}