-
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 6 #21175
Conversation
The PR focuses only on JS code fences. Idea is to gradually prettify all the JS code fences before the full automation.
Please see #20280 (comment). @Rob--W , what is the status of your internal discussions? I'm not sure what is the best way forward if the WebExtensions team doesn't want Prettier. |
This pull request has merge conflicts that must be resolved before it can be merged. |
Sorry for missing this comment. The team agreed with the concerns expressed in #20280 (comment) Doesn't necessarily mean that we want to keep everything unchanged. There were additional remarks: one of my expressed concerns was over the readability of A new team member who went through the onboarding with help of MDN particularly agreed with this point that I raised:
I fully recognize the value of a uniform formatting across the documentation. That should not be at the expense of the ease of understanding. If we can configure Prettier to achieve uniformity and not sacrifice comprehensibility, then we are good to proceed. The readability of code is subjective. What is not subjective is the (in)ability to Ctrl-F when the reference to an API is split over multiple lines (see the |
Since the WebExt section more or less has its own governance, it's best if the WebExt team can make decisions about their own coding style. As long as they believe the current state is okay, it's fine if we don't apply prettier here at this stage. |
The PR focuses only on JS code fences.
Idea is to gradually prettify all the JS code fences before the full automation.
cc/ @Josh-Cena