Skip to content

Commit 47070e1

Browse files
committed
Run formatter.
1 parent 2c6255b commit 47070e1

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
rev: v4.0.0-alpha.8
2222
hooks:
2323
- id: prettier
24-
entry: pnpm run format:files
24+
entry: prettier --config .prettierrc --write
2525
exclude: "pnpm-lock.yaml"
2626
exclude_types: ["svg", "editorconfig", "gitignore"]
2727
files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
@@ -30,10 +30,10 @@ repos:
3030
hooks:
3131
- id: local_prettier
3232
name: local prettier
33-
entry: pnpm run format:files
34-
language: system
35-
types_or: ["text"]
36-
exclude_types: ["editorconfig", "gitignore"]
33+
entry: prettier --config .prettierrc --write
34+
language: node
35+
exclude_types: ["svg", "editorconfig", "gitignore"]
36+
additional_dependencies: ["prettier", "prettier-plugin-astro"]
3737
files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
3838

3939
- id: astro-check

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@tailwindcss/typography": "^0.5.16",
2323
"@types/react": "^19.0.12",
2424
"@types/react-dom": "^19.0.4",
25-
"astro": "^5.1.6",
2625
"astro-delete-unused-images": "^1.0.3",
2726
"astro-meta-tags": "^0.3.1",
2827
"astro-pagefind": "^1.8.1",
@@ -41,7 +40,8 @@
4140
"typescript": "^5.7.3"
4241
},
4342
"devDependencies": {
44-
"prettier": "^3.4.2",
43+
"astro": "^5.5.2",
44+
"prettier": "^3.5.3",
4545
"prettier-plugin-astro": "^0.14.1"
4646
},
4747
"prettier": {

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/global.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,7 @@ p.cross::after {
201201
--slope: (var(--max-fs) - var(--min-fs)) * (100vw - var(--min-vw-rem)) /
202202
(var(--max-vw) - var(--min-vw));
203203

204-
font-size: clamp(
205-
var(--min-fs-rem),
206-
var(--min-fs-rem) + var(--slope),
207-
var(--max-fs-rem)
208-
);
204+
font-size: clamp(var(--min-fs-rem), var(--min-fs-rem) + var(--slope), var(--max-fs-rem));
209205
}
210206

211207
h1 {

0 commit comments

Comments
 (0)