Description
Relative imports like import Button from '../../../../components/ui/Button' are fragile, ugly, and make refactoring difficult. We must use absolute path aliases.
Acceptance Criteria
Technical Details
- If using a monorepo structure (like Turborepo), ensure cross-workspace imports are handled cleanly through
package.json exports rather than deep path aliases.
Description
Relative imports like
import Button from '../../../../components/ui/Button'are fragile, ugly, and make refactoring difficult. We must use absolute path aliases.Acceptance Criteria
compilerOptions.pathsintsconfig.json."@/*": ["./src/*"],"@components/*": ["./src/components/*"],"@lib/*": ["./src/lib/*"].Technical Details
package.jsonexports rather than deep path aliases.