-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Run Prettier on JS code fences, part 4 #20723
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.
This is so nice.
I had a couple of comments about https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType and https://developer.mozilla.org/en-US/docs/Web/API/Client/id where there isn't a real example - we should either add something or remove the whole Examples section.
And it looks as if you have Prettier adding trailing commas? which I thought we were not doing.
By default, Prettier adds trailing commas everywhere it is correct in ES5. Here it is an object, so it is valid ES5 syntax, and Prettier adds it. It doesn't add (by default) commas to a list of function parameters: see https://prettier.io/docs/en/options.html#trailing-commas This looks ok (or I have misunderstood the not-activated option). |
OK, fair enough. |
So may I remove empty sections in the upcoming PRs? Keeping them will require |
fa52663
to
90fca34
Compare
Yeah, it would be much better to have examples, but I don't see any value to readers in having empty examples. |
|
90fca34
to
78a3209
Compare
The PR focuses only on JS code fences. Idea is to gradually prettify all the JS code fences before the full automation.
66fdf25
to
0639f1f
Compare
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.
Thank you for this @OnkarRuikar , it is so great.
* Run Prettier on JS code fences, part 4 The PR focuses only on JS code fences. Idea is to gradually prettify all the JS code fences before the full automation. * remove an empty section * remove the empty section
Adding #20713
The PR focuses only on JS code fences.
Idea is to gradually prettify all the JS code fences before the full automation.