Bug: places closing paren in wrong location of v-for #251
Labels
framework: Vue
Related to the framework Vue
type: bug
Functionality that does not work as intended/expected
Plugin Version
v1.15.3 & 1.16.0-0
Prettier Version
v2.3.1
Which frameworks are affected?
Node Version
v12.19.1
Which operating systems have you used?
Prettier config
Input
Output or Error
Expected Output
Additional Context
While we should technically have the parentheses in the markup, I've found a few places where they were missed as in the example above. Vue does do the right thing with that
v-for
and knows the first value is the value and the second is the index even without the proper parentheses. The "fix" for this appears to put the ending parentheses in the wrong place. Example diff after runningyarn prettier --write src/**/*.vue
:Identical results on version 1.15.3 and 1.16.0-0.
The text was updated successfully, but these errors were encountered: