Detect Circular Dependencies in ES6
You can use the circular dependency plugin for webpack: https://www.npmjs.com/package/circular-dependency-plugin
You can also use madge to statically detect circular references: https://github.com/pahen/madge
You can try dpdm, which is definitely better than madge, especially in a mix of javascript and typescript.
Disclaimer: I am the creator of dpdm