Script Setup Structure

Verze:

31. 12. 2025

Zodpovědná osoba:

Dominik Šlechta

Script setup MUST follow this order: imports, props, emits, functional blocks, lifecycle hooks.

The script setup section MUST follow this general order:

  1. Imports (MUST be first)
  2. Props definition (MUST be after imports)
  3. Emits definition (MUST be after props)
  4. Functional blocks (grouped by feature/functionality)
  5. Lifecycle hooks (SHOULD be at the end)