Edits to the paragraph about Prettier #7179
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
I removed the mention of Prettier for VS Code as I think it always uses the latest version and you also need to change the settings for it to work with our code style, and I don't really want to take up space to explain how to configure it. The parser it uses also cannot format CSS, even though Prettier has an official CSS parser.
I was thinking of also linking to the online Prettier playground as an easy-to-use alternative, but that also appears to only be able to use the latest version. That would be fine except that, like many developers, we hardcode a version, after we learned how automatic updates go the hard way.
I haven't tried Prettier on RunKit yet, but that might be one other option for those who aren't ready to install Node.js just to format code. If anyone knows of any other easy ways to get code formatted with Prettier's algorithms before committing changes that 1. can be configured and 2. can use a specific version, let me know.
Despite all of these removed references, I did add a link to the
prettier
package on npm, and continue to recommend enabling the Actions feature.