bcherny / tslint-no-circular-imports

TSLint plugin to detect and warn about circular imports
MIT License
86 stars 12 forks source link

Ignoring interfaces? #19

Open dupski opened 6 years ago

dupski commented 6 years ago

Yo! This is a great plugin - helps me avoid some hard-to-track bugs!

Is there any way we could have an option to ignore interfaces / types? Circular references between interfaces do not cause runtime issues and my project has a few that are hard to get rid of!

bcherny commented 6 years ago

Thanks! That’s a great idea - contributions are welcome!

Hufschmidt commented 3 years ago

I know this issue is old, would the new 'type-only imports' from typescript 3.8 be a simple fix for this issue?

Reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export