Skip to content

Commit 98ad90e

Browse files
committed
feat(core): enhance config validation
1 parent 676cbb7 commit 98ad90e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/lib/implementation/read-rc-file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export async function autoloadRc(tsconfig?: string): Promise<CoreConfig> {
8080
let ext = '';
8181
// eslint-disable-next-line functional/no-loop-statements
8282
for (const extension of SUPPORTED_CONFIG_FILE_FORMATS) {
83-
const path = `${CONFIG_FILE_NAME}.${extension}`;
84-
const exists = await fileExists(path);
83+
const filePath = `${CONFIG_FILE_NAME}.${extension}`;
84+
const exists = await fileExists(filePath);
8585

8686
if (exists) {
8787
ext = extension;

0 commit comments

Comments
 (0)