Open wendyzhaogogo opened 4 years ago
I believe it's a bug in prettier.
I believe it's a bug in prettier.
yes,that's it. but i can't figure out which rule controls this after i look at in https://prettier.io/docs/en/options.html in detail.
the config below does not avoid that error
module.exports = {
arrowParens: "avoid"
}
``
You can do this:
<!-- eslint-disable-next-line prettier/prettier -->
<template v-slot:handle="data, obj">
{{ obj }}
</template>
@sodatea yes, I have covered the problem in your way, but another thing is which rule causes this.... prettier/prettier is a rule collection, i'm confused with it
Version
4.2.3
Reproduction link
Environment info
Steps to reproduce
just edit your template part of *.vue with multiple params slot-scope
the above code will throw errors below:
warning: Replace
data,·obj
with(data,·obj)
(prettier/prettier)What is expected?
works
What is actually happening?
errors