withastro / language-tools

Language tools for Astro
MIT License
240 stars 45 forks source link

💡 RFC: Add {} after = #853

Closed cdtut closed 2 months ago

cdtut commented 2 months ago

Background & Motivation

Type <div prop= and '' get inserted which is right. But if <Component prop= (anything that start with big letter) it should insert {} because that is probably what you want for components.

Proposed Solution

Risks, downsides, and/or tradeoffs

Downside is if you wanted '' instead of {} for components. But most of time you won't and if you do can just delete it.

If there is configuration option then no risk because people who don't like it can change.

Detailed Design

No response

Help make it happen!