Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy