Skip to content

Commit

Permalink
[Docs Site] core formatting checks (#17262)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
2 people authored and harshil1712 committed Dec 3, 2024
1 parent f896ab8 commit aceec1c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- run: npm ci
- run: npm run check

## TODO: formatting checks

- run: npm run format:core:check
## TODO: content formatting checks
- run: npm run build
env:
NODE_OPTIONS: "--max-old-space-size=4192"
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ dist
public/_redirects
public/analytics/static/downloads/main.css
src/content/workers-ai-models/*.json
tests/fixtures/openapi.json
tests/fixtures/openapi.json
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"check:functions": "npx tsc --noEmit -p ./functions/tsconfig.json",
"check:worker": "npx tsc --noEmit -p ./worker/tsconfig.json",
"dev": "npx astro dev",
"format": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,astro,css,json,yaml,yml}\"",
"format": "npm run format:core && npm run format:data",
"format:core": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
"format:core:check": "npm run format:core -- --check",
"format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"",
"format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"",
"postinstall": "npx patch-package && npm run sync",
"preview": "npx astro preview",
"script:optimize-svgs": "npx tsx scripts/optimize-svgs.ts",
Expand Down

0 comments on commit aceec1c

Please sign in to comment.