diff options
author | ZYSzys <zyszys98@gmail.com> | 2019-10-04 00:35:41 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-05 13:59:32 -0700 |
commit | 739f113ba63367a93e1567032d85573a079b97b5 (patch) | |
tree | fcb0a5be64a307f530024d0a192ec97580971cc5 /lib/internal/modules/cjs/loader.js | |
parent | f0bee9b490e55ae93da1d1f8a485a4a432e61575 (diff) | |
download | android-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/modules/cjs/loader.js')
-rw-r--r-- | lib/internal/modules/cjs/loader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index 7d9b4a9879..6f727b4510 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -732,7 +732,7 @@ Module._resolveFilename = function(request, parent, isMain, options) { if (Array.isArray(options.paths)) { const isRelative = request.startsWith('./') || request.startsWith('../') || - (isWindows && request.startsWith('.\\') || + ((isWindows && request.startsWith('.\\')) || request.startsWith('..\\')); if (isRelative) { |