How to avoid single '>' in the ending line when formatting template? #2504
Answered
by
johnsoncodehk
xiangnanscu
asked this question in
Q&A
-
for example, instead of <script setup></script>
<template>
<a-col>
<div class="logo">
<router-link :to="{ path: '/' }"
><span style="color: white">foo</span></router-link
>
</div></a-col
>
</template> format like this: <script setup></script>
<template>
<a-col>
<div class="logo">
<router-link :to="{ path: '/' }">
<span style="color: white">foo</span>
</router-link>
</div>
</a-col>
</template>
|
Beta Was this translation helpful? Give feedback.
Answered by
johnsoncodehk
Mar 29, 2023
Replies: 1 comment
-
I think you're using Prettier, I'm not sure if Prettier can config it, you can ask in Prettier community or change to another formatter. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiangnanscu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you're using Prettier, I'm not sure if Prettier can config it, you can ask in Prettier community or change to another formatter.