-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:vueIssues affecting VueIssues affecting Vuelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 3.4.0
Playground link
--parser vue
Input:
<template>
<button @click="isFoobar = !isFoobar">Click</button>
</template>
Output:
<template>
<button @click="(isFoobar = !isFoobar)">Click</button>
</template>
Expected output:
<template>
<button @click="isFoobar = !isFoobar">Click</button>
</template>
Why?
There is no need to add parens around the statement.
So we should left it as it is.
v3.4 docs doesn't mention this change.
kouts, Sky-Flare and FloEdelmann
Metadata
Metadata
Assignees
Labels
lang:vueIssues affecting VueIssues affecting Vuelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.