r/typescript • u/sereikis • 14h ago
what did your team actually settle on instead of ../../../../ imports
our rule is no parent relative imports outside the current folder. same folder stays ./x, anything else goes through @/ so it doesnt matter how deep the file moves later.
works fine but i know its not the only way people solve this. monorepo package boundaries, tsconfig paths, eslint rules banning the pattern outright, curious what you landed on and whether it survived contact with a big refactor
what broke first when your team tried to enforce this