New architecture validation rules for Jinja macros:
- FE-003: Inline loading/error states → use alerts.html macro
Detects: x-show="loading" with py-12, bg-red-100 error boxes
- FE-004: Inline modals → use modals.html macro
Detects: fixed inset-0 z-50 with role="dialog" or backdrop
- FE-005: Inline table wrappers → use tables.html macro
Detects: overflow-hidden rounded-lg shadow-xs with <table>
- FE-006: Inline dropdowns → use dropdowns.html macro
Detects: @click.outside with absolute positioning menu
- FE-007: Inline page headers → use headers.html macro
Detects: flex justify-between with h2 text-2xl
All rules support noqa comments (e.g., {# noqa: FE-003 #})
Current violations found: 62 (all warnings)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
62 KiB
Executable File
62 KiB
Executable File