Skip to content

ARCH001 · Component size

Severity: info · Category: architecture

Flags a .svelte component longer than 400 lines (static/CLI analysis of src/**/*.svelte).

A very large component is hard to read, test, and reuse, and usually means several responsibilities should be split out — a common shape for AI-generated code.

Extract sections into smaller, focused child components (and reusable .svelte.ts modules for logic).