Get the latest tech news
Please Stop Using Barrel Files
Why you probably shouldn't be adding index.ts files everywhere
Oftentimes, developers want to improve the code organization by providing a single interface to import everything tab related from. This not only seems a lot cleaner, it also means we can shift internal files around without having to update all consumer sides. But if you are writing app code, you're just making your life harder by putting index.ts files into arbitrary directories.
Or read this on Hacker News