-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Forbidding extra aliases when the import names do not conflict is what I want. But defining and maintaining aliases for package names that are unique for whole codebase as it grows feels like a chore (and not necessarily the intent).
Example (our use case): In our monorepo, we have lots of protobufs. And they're colocated with their packages, e.g. pkg/foo/proto, pkg/bar/proto, etc (in separate subdirectory due to code generation dependency reasons). Without defining all aliases (fooproto, barproto, etc), the no-extra-aliases cannot work for code which refers to more than one /proto (as it changes all imports to 'proto' which then conflict and fail to compile), but on the other hand it would be nice to use it elsewhere without such naming conflict resolution going on.