npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm install- Install dependencies
No test framework configured. Add Vitest for unit testing:
npm run test- Run all testsnpm run test -- <file>- Run single test file
No linter configured. Add ESLint:
npm run lint- Run linternpm run lint:fix- Auto-fix lint issues
- React imports first
- External libraries second
- Local imports last with relative paths
- Group by type, separate with blank lines
- PascalCase: Components, Types, Interfaces
- camelCase: Variables, functions, hooks
- UPPER_SNAKE_CASE: Constants
- Use explicit TypeScript types
- Define interfaces for component props
- Use union types for mode/state enums
- Prefer
React.FC<Props>for components
- Use try/catch for async operations
- Display user-friendly error messages
- Avoid console.error in production
- Use useCallback for event handlers
- Use useMemo for expensive computations
- Use useRef for DOM manipulation
- Tailwind CSS classes
- Responsive design with mobile-first
- Dark theme (slate color palette)
- Consistent spacing and typography