Skip to content

Commit

Permalink
imports-config: fix imports from the same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sokolov committed Dec 12, 2024
1 parent f1b7eeb commit 9185f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/imports-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default defineImportsRule(function (details) {
const cwd = process.cwd();
const them = getTopDir(imported.module.substring(prefix.length));
const us = getTopDir(details.importing.module.substring(prefix.length));
if (them === us) return { allowed: true };

const paths = [
cwd + "/" + prefix + ".imports.ts",
Expand Down

0 comments on commit 9185f98

Please sign in to comment.