# Sections

This file defines all sections, their ordering, impact levels, and descriptions.
The section ID (in parentheses) is the filename prefix used to group rules.

---

## 1. Component Patterns (comp)

**Impact:** CRITICAL
**Description:** Core patterns for building headless React components including forwardRef, render elements, context providers, controlled/uncontrolled state, and memoization strategies.

## 2. Naming Conventions (name)

**Impact:** HIGH
**Description:** Consistent naming patterns for components, files, directories, types, hooks, and data attributes that enable predictable API surfaces and clear code organization.

## 3. Organization (org)

**Impact:** HIGH
**Description:** File and folder structure patterns for compound components, barrel exports, test placement, and documentation files that scale with library complexity.

## 4. Error Handling (err)

**Impact:** HIGH
**Description:** Development-only warnings, error message standards, cancelable events, and validation patterns that improve developer experience without impacting production bundles.

## 5. Style (style)

**Impact:** MEDIUM
**Description:** Code style conventions for imports, prop type definitions, default values, and documentation that maintain consistency across the codebase.
