-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle for...of in vue v-for #132
Conversation
Line 277 in b237d0f
@fisker Hi 🙂 (You are my person of trust in prettier's team ^^ so I write you) {
val: 'item of items', // not 'item in items'!
parser: '__vue_expression',
codeInterpolationOptions: {
singleQuote: true,
bracketSpacing: true,
arrowParens: 'always',
printWidth: 9000,
endOfLine: 'lf'
}
} Vue seems to allow Is this a prettier issue? Or do I need to call another (internal) parser for this specific case? |
The FYI, we just improved some |
@fisker So I did not dig deep into it but the only call to this function is here if (options.parser === "vue") {
if (node.fullName === "v-for") {
return printVueFor(getValue(), textToDoc); But I'm calling directly with Lines 368 to 413 in 8106cda
|
@fisker So indeed if calling Line 396 in a220e91
with only But why |
Awaiting release of prettier: prettier/prettier#9225 (comment) |
Because it's not legal js code. |
Oh you mean cause using |
No, Check #132 (comment) |
closes #129