Prettier 3.4.0
Playground link
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.
Prettier 3.4.0
Playground link
Input:
Output:
Expected output:
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.