- Path Aliases: Always use the
@import alias instead of relative paths when importing from other files in this project.- ✅ Use:
import authClient from '@/lib/authClient.ts' - ❌ Avoid:
import authClient from '../lib/authClient.ts'orimport authClient from '../../lib/authClient.ts' - The
@alias maps to./src/*and is configured intsconfig.jsonandvite.config.ts - This keeps imports cleaner, more maintainable, and consistent across the codebase
- Only use relative paths for imports from external packages (node_modules) or when importing files in the same directory
- ✅ Use: