Seeking Guidelines for Organizing Codebase and Managing Imports
Does anyone have guidelines for how to organize code in an application codebase? I would love to be able to rely on the
export * as DB from "./app-db/mod.js", but I'm a bit concerned about accidentally importing items directly from their folders. So, in these cases, I tend to reach for namespaces. I think I could split everything up into separate packages (and set package.json "exports"), but I'm a bit worried about the added maintenance burden that entails. Does anyone have tips for this situation? Even a linter to correct imports to star exports would be better.