Skip to content

Commit 3feb54c

Browse files
committed
fix: add a workaround for ESLint < v5
1 parent 60f6597 commit 3feb54c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rules/no-cycle.js

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ module.exports = {
3434
return // no Flow import resolution
3535
}
3636

37+
if (sourceNode._babelType === 'Literal') {
38+
return // no Flow import resolution, workaround for ESLint < 5.x
39+
}
40+
3741
if (imported == null) {
3842
return // no-unresolved territory
3943
}

0 commit comments

Comments
 (0)