mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: upgrade prettier and add --cache (#4543)
This uses the `--cache` flag with `prettier --check` to cache the results and speed up subsequent runs.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
"check:all": "yarn format:check && yarn lint && yarn test",
|
||||
"chromatic": "chromatic",
|
||||
"dev": "vite",
|
||||
"format:check": "prettier --check '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
|
||||
"format:check": "prettier --cache --check '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
|
||||
"format:types": "prettier --write 'src/api/typesGenerated.ts'",
|
||||
"format:write": "prettier --write '**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
|
||||
"lint": "jest --selectProjects lint",
|
||||
|
||||
Reference in New Issue
Block a user