Vue named slots shorthand value is not formatted
See original GitHub issuePrettier 1.18.2 Playground link
--parser vue
Input:
<template>
<CustomInput #default="{foo}" />
</template>
Output:
<template>
<CustomInput #default="{foo}" />
</template>
Expected behavior: Output:
<template>
<CustomInput #default="{ foo }" />
</template>
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Vue Named Slot Shorthand - Medium
It is a Vue component that has an additional slot functionality to it. It's a component with super power. It's a component that's...
Read more >Template Syntax | Vue.js
Vue uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying component instance's data. All Vue...
Read more >Style Guide - Vue.js
Style Guide. This is the official style guide for Vue-specific code. If you use Vue in a project, it's a great reference to...
Read more >Template Syntax - Vue.js
Template Syntax. Vue.js uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying Vue instance's data....
Read more >Slots - Vue.js
Slot Content and Outlet #. We have learned that components can accept props, which can be JavaScript values of any type. But how...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@fisker I think this change could do the job.
PR welcome