Bug: Unable to pass inlined object literal to custom vue directive #419
Open
Description
Plugin Version
v2.3.0
Prettier Version
v2.7.1
Which frameworks are affected?
- none
- vue
- angular
- svelte
Node Version
v18.12.0
Which operating systems have you used?
- Linux
- macOS
- Windows
Prettier config
{
"printWidth": 80,
"semi": false,
"singleQuote": true,
"quoteProps": "consistent",
"arrowParens": "avoid",
"trailingComma": "none",
"pugSingleQuote": false,
"pugAttributeSeparator": "none",
"pugCommentPreserveSpaces": "trim-all",
"pugWrapAttributesThreshold": 1,
"pugWrapAttributesPattern": "^(@|v-)"
}
Input
.topic(
v-for="topic in topics"
v-delayed-unhide="{ disabled: !!selectedTopic }"
)
Output or Error
The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue: disabled: !!selectedTopic
Expected Output
The plugin should be able to handle the correct JS input in the custom directive's value and should not complain about it.
Additional Context
No response