-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Rename trailingComma to trailingCommaPHP #1059
Conversation
@@ -62,7 +62,7 @@ const { | |||
function shouldPrintComma(options, level) { | |||
level = level || "none"; | |||
|
|||
switch (options.trailingComma) { | |||
switch (options.trailingCommaPHP) { |
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.
Let's support also options.trailingComma
for all
and none
for better integration
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.
All good, one note
Since 'none' is none despite option being present or not, I only add check for 'all'. |
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.
/cc @czosel
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.
👍
@czosel can you do release? because we are below 1.0 we can release this as minor, don't forget add infromation about this to release page |
@evilebottnawi done. Is the text sufficient? https://github.com/prettier/plugin-php/releases/tag/v0.11.0 |
@czosel yes 👍 |
What about the CLI option? Current v0.11.0 still uses |
Need update too |
Shall I try reverting the release or shall we publish a fix as 0.11.1? |
@czosel yes, looks we do broken release, we should merge this and do release |
🤦♂️ I didn't realize that this wasn't merged yet. |
I just unpublished 0.11.0 - the current master is good for release, right? |
Yes |
Published as 0.11.1 |
Alright, playground has been updated. 👍 |
@evilebottnawi thanks for getting this out! |
/cc @loilo |
I also apologize for the broken release - next time I won’t cut a release while sitting in a meeting 😅 |
Rename
trailingComma
property totrailingCommaPHP
in order to prevent collisions with other Prettier plugins/implementations.As discussed in #964