We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c56788 commit 483b4d1Copy full SHA for 483b4d1
packages/core/src/config/load.ts
@@ -17,9 +17,7 @@ async function loadIgnoreFile(
17
configPath: string | undefined,
18
resolver: BaseResolver
19
): Promise<Record<string, Record<string, Set<string>>> | undefined> {
20
- if (!configPath) return undefined;
21
-
22
- const configDir = getDir(configPath);
+ const configDir = configPath ? getDir(configPath) : process.cwd();
23
const ignorePath = resolvePath(configDir, IGNORE_FILE);
24
25
if (fs?.existsSync && !isAbsoluteUrlOrFileUrl(ignorePath) && !fs.existsSync(ignorePath)) {
0 commit comments