mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-23 01:06:36 +00:00
Update README to reflect changes in test infrastructure organization and task decomposition workflow. Remove obsolete E2E test templates and clarify input specifications for integration tests. Enhance documentation for planning and implementation phases, including new directory structures and task management processes.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
description: "React/TypeScript/Tailwind conventions: components, hooks, strict typing, utility-first styling"
|
||||
globs: ["**/*.tsx", "**/*.jsx", "**/*.ts", "**/*.css"]
|
||||
---
|
||||
# React / TypeScript / Tailwind
|
||||
|
||||
- Use TypeScript strict mode; define `Props` interface for every component
|
||||
- Use named exports, not default exports
|
||||
- Functional components only; use hooks for state/side effects
|
||||
- Server Components by default; add `"use client"` only when needed (if Next.js)
|
||||
- Use Tailwind utility classes for styling; no CSS modules or inline styles
|
||||
- Name event handlers `handle[Action]` (e.g., `handleSubmit`)
|
||||
- Use `React.memo` for expensive pure components
|
||||
- Implement lazy loading for routes (`React.lazy` + `Suspense`)
|
||||
- Organize by feature: `components/`, `hooks/`, `lib/`, `types/`
|
||||
- Never use `any`; prefer unknown + type narrowing
|
||||
- Use `useCallback`/`useMemo` only when there's a measured perf issue
|
||||
Reference in New Issue
Block a user