Skip to content

Commit 674ebdc

Browse files
committed
feat: upgrade prettier and add --cache
This uses the `--cache` flag with `prettier --check` to cache the results and speed up subsequent runs.
1 parent 459ee4e commit 674ebdc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

site/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"check:all": "yarn format:check && yarn lint && yarn test",
1010
"chromatic": "chromatic",
1111
"dev": "vite",
12-
"format:check": "prettier --check '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
12+
"format:check": "prettier --cache --check '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
1313
"format:types": "prettier --write 'src/api/typesGenerated.ts'",
1414
"format:write": "prettier --write '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
1515
"lint": "jest --selectProjects lint",
@@ -116,7 +116,7 @@
116116
"jest-runner-eslint": "1.1.0",
117117
"jest-websocket-mock": "2.4.0",
118118
"msw": "0.47.0",
119-
"prettier": "2.7.1",
119+
"prettier": "^2.7.1",
120120
"resize-observer": "1.0.4",
121121
"semver": "7.3.7",
122122
"ts-jest": "27.1.4",

site/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11129,16 +11129,16 @@ prelude-ls@~1.1.2:
1112911129
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
1113011130
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==
1113111131

11132-
prettier@2.7.1:
11133-
version "2.7.1"
11134-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
11135-
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
11136-
1113711132
"prettier@>=2.2.1 <=2.3.0":
1113811133
version "2.3.0"
1113911134
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
1114011135
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
1114111136

11137+
prettier@^2.7.1:
11138+
version "2.7.1"
11139+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
11140+
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
11141+
1114211142
pretty-error@^2.1.1:
1114311143
version "2.1.2"
1114411144
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6"

0 commit comments

Comments
 (0)