# Coding Standards

## Overview

{{overview}}

## Code Formatting

**Tool**: {{formatter}}
**Config**: {{formatter_config}}
**Enforcement**: {{formatter_enforcement}}

### Key Settings

{{#each formatter_settings}}
- **{{this.setting}}**: {{this.value}}
{{/each}}

## Linting

**Tool**: {{linter}}
**Base Config**: {{linter_base}}
**Strictness**: {{linter_strictness}}

### Key Rules

{{#each linter_rules}}
- `{{this.rule}}`: {{this.setting}} — {{this.rationale}}
{{/each}}

## Naming Conventions

### Variables and Functions

| Element | Convention | Example |
|---------|------------|---------|
{{#each naming_conventions}}
| {{this.element}} | {{this.convention}} | `{{this.example}}` |
{{/each}}

### Files and Folders

{{#each file_naming}}
- **{{this.type}}**: {{this.convention}} (e.g., `{{this.example}}`)
{{/each}}

## File Organization

### Project Structure

```
{{project_structure}}
```

### Conventions

{{#each organization_conventions}}
- **{{this.item}}**: {{this.convention}}
{{/each}}

## Import Order

```{{language}}
{{import_order_example}}
```

**Rules**:
{{#each import_rules}}
- {{this}}
{{/each}}

## Error Handling

### Pattern

**Approach**: {{error_pattern}}

### Guidelines

{{#each error_guidelines}}
- {{this}}
{{/each}}

### Example

```{{language}}
{{error_example}}
```

## Logging

**Tool**: {{logging_tool}}
**Format**: {{logging_format}}

### Log Levels

| Level | Usage |
|-------|-------|
{{#each log_levels}}
| {{this.level}} | {{this.usage}} |
{{/each}}

### Guidelines

**Always log**:
{{#each log_always}}
- {{this}}
{{/each}}

**Never log**:
{{#each log_never}}
- {{this}}
{{/each}}

## Comments and Documentation

### When to Comment

{{#each comment_guidelines}}
- {{this}}
{{/each}}

### Documentation Format

**Functions**: {{doc_format_functions}}
**Classes**: {{doc_format_classes}}

## Code Patterns

### Preferred Patterns

{{#each preferred_patterns}}
#### {{this.name}}

{{this.description}}

```{{../language}}
{{this.example}}
```
{{/each}}

### Anti-Patterns to Avoid

{{#each anti_patterns}}
- **{{this.name}}**: {{this.why}}
{{/each}}

---
*Generated by specs.md - fabriqa.ai FIRE Flow*
