Skip to content

Commit aceec1c

Browse files
CherryKianNH
authored andcommitted
[Docs Site] core formatting checks (#17262)
* chore: core formatting checks * chore: format left-over files * chore: more formatting * chore: more formatting * chore: format more * chore: format more * chore: format * chore: update formatting * Update package.json Co-authored-by: Kian <[email protected]> --------- Co-authored-by: Kian <[email protected]>
1 parent f896ab8 commit aceec1c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- run: npm ci
3131
- run: npm run check
3232

33-
## TODO: formatting checks
34-
33+
- run: npm run format:core:check
34+
## TODO: content formatting checks
3535
- run: npm run build
3636
env:
3737
NODE_OPTIONS: "--max-old-space-size=4192"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ dist
55
public/_redirects
66
public/analytics/static/downloads/main.css
77
src/content/workers-ai-models/*.json
8-
tests/fixtures/openapi.json
8+
tests/fixtures/openapi.json

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"check:functions": "npx tsc --noEmit -p ./functions/tsconfig.json",
1313
"check:worker": "npx tsc --noEmit -p ./worker/tsconfig.json",
1414
"dev": "npx astro dev",
15-
"format": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,astro,css,json,yaml,yml}\"",
15+
"format": "npm run format:core && npm run format:data",
16+
"format:core": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
17+
"format:core:check": "npm run format:core -- --check",
18+
"format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"",
19+
"format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"",
1620
"postinstall": "npx patch-package && npm run sync",
1721
"preview": "npx astro preview",
1822
"script:optimize-svgs": "npx tsx scripts/optimize-svgs.ts",

0 commit comments

Comments
 (0)