-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
chore(playground): add new options #3350
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be cool if someday the HTML was generated from cli-constant
@@ -82,7 +82,6 @@ const detailedOptions = normalizeDetailedOptions({ | |||
category: CATEGORY_FORMAT, | |||
forwardToApi: true, | |||
description: "Include parentheses around a sole arrow function parameter.", | |||
default: "avoid", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you going to fill this back in once we've decided on the new default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, forgot to mention why I removed this line: we use the default value from options.js
for all format options.
Lines 574 to 576 in fbbfa52
if (optionCamelName in apiDefaultOptions) { | |
return apiDefaultOptions[optionCamelName]; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, that's feels a bit unintuitive, but changing it is out of the scope of this PR
Currently the playground uses the released version of Prettier (from package.json) so this won't actually work if we merge it. |
I added the 1.9 milestone just to help us remember it's related (and merge after release) but feel free to remove if you think someone might think this is a blocker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(so we don't accidentally merge)
So to clarify, this should be merged post release? |
Yes. After prettier's own dependency on prettier is updated to 1.9.0 |
Fixes #3338
proseWrap: "preserve"
option #3340