We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d8ec3 commit 70ea2c6Copy full SHA for 70ea2c6
src/rules/no-cycle.js
@@ -119,6 +119,9 @@ module.exports = {
119
traversed.add(m.path);
120
121
for (const [path, { getter, declarations }] of m.imports) {
122
+ // If we're in different SCCs, we can't have a circular dependency
123
+ if (scc[myPath] !== scc[path]) { continue; }
124
+
125
if (traversed.has(path)) { continue; }
126
const toTraverse = [...declarations].filter(({ source, isOnlyImportingTypes }) => !ignoreModule(source.value)
127
// Ignore only type imports
0 commit comments