Skip to content

feat: upgrade prettier and add --cache #4543

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

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Oct 13, 2022

This uses the --cache flag with prettier --check to cache the
results and speed up subsequent runs.

Without flag (i.e. no cache):

yarn run v1.22.19
$ prettier --cache --check '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'
Checking formatting...
All matched files use Prettier code style!
Done in 6.01s.

With flag after cache:

yarn run v1.22.19
$ prettier --cache --check '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'
Checking formatting...
All matched files use Prettier code style!
Done in 1.33s.

For more info, read here: https://prettier.io/docs/en/cli.html#--cache

@jsjoeio jsjoeio self-assigned this Oct 13, 2022
@jsjoeio jsjoeio marked this pull request as ready for review October 13, 2022 21:03
@jsjoeio jsjoeio requested a review from a team as a code owner October 13, 2022 21:03
@jsjoeio jsjoeio requested review from presleyp and removed request for a team October 13, 2022 21:03
This uses the `--cache` flag with `prettier --check` to cache the
results and speed up subsequent runs.
@jsjoeio jsjoeio force-pushed the jsjoeio/update-prettier branch from 8d3c9b1 to 4a6b6cb Compare October 13, 2022 21:07
@jsjoeio jsjoeio enabled auto-merge (squash) October 13, 2022 21:37
@jsjoeio jsjoeio merged commit 88f7505 into main Oct 14, 2022
@jsjoeio jsjoeio deleted the jsjoeio/update-prettier branch October 14, 2022 16:22
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants