Each feature must have this exact structure:
src/features/{feature}/
βββ components/ # UI components specific to this feature
βββ hooks/ # Custom React hooks for this feature
βββ services/ # API calls and business logic
βββ types/ # Feature-specific types (extends shared types)
βββ index.ts # Clean exports only
import { LoginForm } from '@/features/auth'
import { ApiResponse } from '@/shared/types'
import { LoginForm } from '@/features/auth/components/LoginForm'
npm run lint
- no warnings allowednpm run build
- successful build requiredany
, always define proper types