Bug: corrupts pug variable names that are assigned to bound Vue props #250
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
I expect if someone forgot to wrap an attribute value in quotes thatlint --fix
oryarn prettier --write src/**/*.vue
would wrap the value correctly in the configured quote style. Instead it replaces the first and last character of the attribute value with the quote. Example diff after runningyarn prettier --write src/**/*.vue
:If a pug variable is used as the value of a bound Vue prop, it should not be wrapped in quotes:
Identical results on version 1.15.3 and 1.16.0-0.
The text was updated successfully, but these errors were encountered: