Skip to content

Instantly share code, notes, and snippets.

View 40818419's full-sized avatar
🎯
Focusing

Konstantin Kulinicenko 40818419

🎯
Focusing
View GitHub Profile
@igogrek
igogrek / Vue code style.md
Last active May 29, 2024 01:58
Code style and application structure

Application structure

General

  1. Application has tree structure with folders for each "feature"
  2. Feature folders are named with lowerCamelCase β†’ myComponentDashboard
  3. Feature can contain any number of components and nested features
  4. Components are named using UpperCamelCase β†’ MyWidgetComponent.vue
  5. Component can have translation .yml file named correspondingly β†’ MyWidgetComponent.yml
  6. If component requires more than 2 files: .vue and .yml file - folder is created with the same name β†’ MyWidgetComponent