Skip to content

Commit ab344f5

Browse files
committed
chore: core formatting checks
1 parent 9c0c0af commit ab344f5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- run: npm ci
3838
- run: npm run check
3939

40-
## TODO: formatting checks
41-
40+
- run: npm run format:core:check
41+
## TODO: content formatting checks
4242
- run: npm run build
4343
env:
4444
NODE_OPTIONS: "--max-old-space-size=4192"

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"check:astro": "npm run sync && astro check",
1111
"check:functions": "npx tsc --noEmit -p ./functions/tsconfig.json",
1212
"dev": "npx astro dev",
13-
"format": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,astro,css,json,yaml,yml}\"",
13+
"format": "npm run format:core && npm run format:content && npm run format:data",
14+
"format:core": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
15+
"format:core:check": "npm run format:core -- --check",
16+
"format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"",
17+
"format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"",
1418
"postinstall": "npx patch-package && npm run sync",
1519
"preview": "npx astro preview",
1620
"start": "npx astro dev",

0 commit comments

Comments
 (0)