-
-
Notifications
You must be signed in to change notification settings - Fork 8.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
chore(v2): update Prettier config #2542
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.
Oh man. Thanks
According to https://prettier.io/blog/2020/03/21/2.0.0.html, that's the default option right? Why do we still have to manually specify? |
Deploy preview for docusaurus-2 ready! Built with commit 862375f |
Deploy preview for docusaurus-2 ready! Built with commit fb97c3c |
When I upgraded Prettier just now in #2538 I think all the arrow parens were updated. So I think it's the default option now without us having to do anything. |
Yes, but my code editor does not know about :) |
Ok let's merge this since it's relatively harmless. But I think if your IDE is using your project's Prettier or has an upgraded Prettier, this wouldn't be an issue. |
* chore(v2): update prettier config * Update .prettierrc * -- Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
Motivation
Update config Prettier so that it is consistent with the latest version of ESLint config Airbnb , where you now always need to write parentheses 😢
https://github.com/airbnb/javascript#arrows--one-arg-parens
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
N/A.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)