Skip to content

Group script by logical concerns

When organizing code within Vue components, group related functionality together rather than grouping by type (e.g., all data properties, then all methods). This improves readability and makes it easier to understand the relationships between different parts of the code.

Rule for AI agents

- PREFER to group by logical concerns rather than grouping by type (data, methods, computed) within components

Eslint rule

  • No ESLint rule available

Source