Upgrade eslint-plugin-import
R=jacktfranklin@chromium.org
Bug: none
Change-Id: I0ad7ba9133af3db19c448a284d79bdfc08101dea
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3268294
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
diff --git a/node_modules/eslint-module-utils/resolve.js b/node_modules/eslint-module-utils/resolve.js
index f488ea7..27d5dcc 100644
--- a/node_modules/eslint-module-utils/resolve.js
+++ b/node_modules/eslint-module-utils/resolve.js
@@ -42,7 +42,7 @@
} else {
resolved = require.resolve(target);
}
- } catch(e) {
+ } catch (e) {
// If the target does not exist then just return undefined
return undefined;
}
@@ -52,13 +52,13 @@
}
// http://stackoverflow.com/a/27382838
-exports.fileExistsWithCaseSync = function fileExistsWithCaseSync(filepath, cacheSettings) {
+exports.fileExistsWithCaseSync = function fileExistsWithCaseSync(filepath, cacheSettings, strict) {
// don't care if the FS is case-sensitive
if (CASE_SENSITIVE_FS) return true;
// null means it resolved to a builtin
if (filepath === null) return true;
- if (filepath.toLowerCase() === process.cwd().toLowerCase()) return true;
+ if (filepath.toLowerCase() === process.cwd().toLowerCase() && !strict) return true;
const parsedPath = path.parse(filepath);
const dir = parsedPath.dir;
@@ -73,7 +73,7 @@
if (filenames.indexOf(parsedPath.base) === -1) {
result = false;
} else {
- result = fileExistsWithCaseSync(dir, cacheSettings);
+ result = fileExistsWithCaseSync(dir, cacheSettings, strict);
}
}
fileExistsCache.set(filepath, result);