Development Setup
Core Development Principles
Fundamental principles and practices that guide CONA development
Core Development Principles
CONA follows a set of core principles that guide our development practices and ensure consistency across the codebase.
Naming Conventions
-
Directories
- Use lowercase with dashes
- Example:
components/auth-wizard
-
Files
- Use lowercase with dashes
- React Components:
user-profile.tsx
- Utilities:
validate-input.ts
- Server Actions:
user-actions.ts
-
Components
- Use PascalCase
- Examples:
UserProfile
,Button
,DataTable
-
Functions
- Use camelCase
- Examples:
getUserData()
,validateInput()
-
Variables
- Use camelCase
- Examples:
userData
,isLoading
-
Constants
- Use SCREAMING_SNAKE_CASE
- Examples:
MAX_USERS
,API_ENDPOINT