Core Development Principles

CONA follows a set of core principles that guide our development practices and ensure consistency across the codebase.

Naming Conventions

  1. Directories

    • Use lowercase with dashes
    • Example: components/auth-wizard
  2. Files

    • Use lowercase with dashes
    • React Components: user-profile.tsx
    • Utilities: validate-input.ts
    • Server Actions: user-actions.ts
  3. Components

    • Use PascalCase
    • Examples: UserProfile, Button, DataTable
  4. Functions

    • Use camelCase
    • Examples: getUserData(), validateInput()
  5. Variables

    • Use camelCase
    • Examples: userData, isLoading
  6. Constants

    • Use SCREAMING_SNAKE_CASE
    • Examples: MAX_USERS, API_ENDPOINT