-
Notifications
You must be signed in to change notification settings - Fork 12
/
@eslint+eslintrc+1.0.0.patch
36 lines (30 loc) · 1.67 KB
/
@eslint+eslintrc+1.0.0.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
index b8d5f8c..bbd1ccc 100644
--- a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
+++ b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
@@ -3228,11 +3228,11 @@ class ConfigArrayFactory {
_loadParser(nameOrPath, ctx) {
debug$2("Loading parser %j from %s", nameOrPath, ctx.filePath);
- const { cwd } = internalSlotsMap$1.get(this);
+ const { cwd, resolver } = internalSlotsMap$1.get(this);
const relativeTo = ctx.filePath || path__default['default'].join(cwd, "__placeholder__.js");
try {
- const filePath = resolve(nameOrPath, relativeTo);
+ const filePath = resolver.resolve(nameOrPath, relativeTo);
writeDebugLogForLoading(nameOrPath, relativeTo, filePath);
@@ -3279,7 +3279,7 @@ class ConfigArrayFactory {
_loadPlugin(name, ctx) {
debug$2("Loading plugin %j from %s", name, ctx.filePath);
- const { additionalPluginPool } = internalSlotsMap$1.get(this);
+ const { additionalPluginPool, resolver } = internalSlotsMap$1.get(this);
const request = normalizePackageName(name, "eslint-plugin");
const id = getShorthandName(request, "eslint-plugin");
const relativeTo = path__default['default'].join(ctx.pluginBasePath, "__placeholder__.js");
@@ -3320,7 +3320,7 @@ class ConfigArrayFactory {
let error;
try {
- filePath = resolve(request, relativeTo);
+ filePath = resolver.resolve(request, relativeTo);
} catch (resolveError) {
error = resolveError;
/* istanbul ignore else */