Why this matters
This practice avoids issues with spaces in attribute values and makes them more readable.
Non-empty HTML attribute values should always be inside quotes (single or double, whichever is not used in JS).
This practice avoids issues with spaces in attribute values and makes them more readable.
Side-by-side examples engineers can pattern-match during review.
<input type=text>
<AppSidebar :style={width:sidebarWidth+'px'}><input type="text">
<AppSidebar :style="{ width: sidebarWidth + 'px' }"><input type=text><input type="text"><input type='text'>From the same buckets as this rule.
For applications, styles in a top-level `App` component and in layout components may be global, but all other components should always be scoped. This can be achieved through CSS modules, class-based strategies like BEM, or the `scoped` attribute in Single-File Components.