Skip to content

Commit e60e636

Browse files
committed
Update prettier entry.
1 parent 8ed1cbf commit e60e636

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ repos:
2525
hooks:
2626
- id: local_prettier
2727
name: prettier
28-
entry: pnpm prettier --check --plugin=prettier-plugin-astro
28+
entry:
29+
pnpm prettier --write --log-level=error --plugin=prettier-plugin-astro
2930
language: node
3031
types_or: ["text"]
3132
exclude_types: ["editorconfig", "gitignore"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "astro check && astro build && pnpm pagefind --site dist",
99
"preview": "astro preview",
1010
"astro": "astro",
11-
"format": "prettier --write --plugin=prettier-plugin-astro ."
11+
"format": "pnpm prettier --write --log-level=error --plugin=prettier-plugin-astro ."
1212
},
1313
"dependencies": {
1414
"@astro-community/astro-embed-youtube": "^0.5.6",

0 commit comments

Comments
 (0)