Files
road-compiler/.trellis/spec/frontend/index.md
T

1.4 KiB

Frontend Development Guidelines

Best practices for frontend development in this project.


Overview

This directory contains guidelines for frontend development. Fill in each file with your project's specific conventions.


Guidelines Index

Guide Description Status
Direct Edit Client Handle/ghost/preview layer ownership, drag projection, session and save contracts Filled
Directory Structure Module organization and file layout Filled
Component Guidelines Component patterns, props, composition Filled
Hook Guidelines Custom hooks, data fetching patterns Filled
State Management Local state, global state, server state Filled
Quality Guidelines Code standards, forbidden patterns Filled
Type Safety Type patterns, validation Filled

How to Fill These Guidelines

For each guideline file:

  1. Document your project's actual conventions (not ideals)
  2. Include code examples from your codebase
  3. List forbidden patterns and why
  4. Add common mistakes your team has made

The goal is to help AI assistants and new team members understand how YOUR project works.


Language: All documentation should be written in English.