eslint-plugin-use-agnostic 0.9.10 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,7 +74,7 @@ export const resolveImportPath = (currentDir, importPath, cwd) => {
|
|
|
74
74
|
// Case 3: Directory import (e.g., `./components` → `./components/index.ts`)
|
|
75
75
|
const indexPath = path.join(basePath, "index");
|
|
76
76
|
const directoryImportPath = findExistingPath(indexPath);
|
|
77
|
-
if (directoryImportPath) return
|
|
77
|
+
if (directoryImportPath) return directoryImportPath;
|
|
78
78
|
|
|
79
79
|
return null; // not found
|
|
80
80
|
};
|