Skip to content
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: upgrade prettier; rename prettier scripts as format #6010

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Prettier v2.5 supports new TS syntax, which we will soon adopt after ts-eslint releases new version with support. (typescript-eslint/typescript-eslint#3950; this would likely be in quite a while)

In addition, all scripts named prettier are renamed as format, because this avoids name conflicts. yarn prettier should invoke the local prettier executable rather than our custom script.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

CI

Verified

This commit was signed with the committer’s verified signature.
Josh-Cena Joshua Chen

Verified

This commit was signed with the committer’s verified signature.
Josh-Cena Joshua Chen
@Josh-Cena Josh-Cena added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Nov 26, 2021
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 26, 2021
@netlify
Copy link

netlify bot commented Nov 26, 2021

✔️ [V2]

🔨 Explore the source changes: d648dc2

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61a04be6f011b80007f32ed3

😎 Browse the preview: https://deploy-preview-6010--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 97
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-6010--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: -1 B (0%)

Total Size: 892 kB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 38.3 kB 0 B
website/build/assets/css/styles.********.css 100 kB 0 B
website/build/assets/js/main.********.js 477 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 66.2 kB 0 B
website/build/blog/index.html 37.8 kB 0 B
website/build/docs/index.html 44 kB +1 B (0%)
website/build/docs/installation/index.html 51.7 kB -2 B (0%)
website/build/index.html 29.5 kB 0 B
website/build/tests/docs/index.html 25.2 kB 0 B
website/build/tests/docs/standalone/index.html 21.7 kB 0 B

compressed-size-action

@slorber
Copy link
Collaborator

slorber commented Dec 1, 2021

Thanks, LGTM 👍

@slorber
Copy link
Collaborator

slorber commented Dec 1, 2021

Also agree on renaming to format as prettier is an implementation detail (similarly to the logger interface somehow, except it's not like there are a lot of good JS formatted libs apart prettier 😅 )

@slorber slorber merged commit 40e4ce0 into main Dec 1, 2021
@slorber slorber deleted the jc/prettier-upgrade branch December 1, 2021 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants