Skip to content

Commit 01e949f

Browse files
committed
ci: check prettier format
1 parent 830454a commit 01e949f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
- name: Run eslint
6969
run: pnpm run lint
7070

71+
- name: Run prettier
72+
run: pnpm run format-check
73+
7174
- name: Run type declaration tests
7275
run: pnpm run test-dts
7376

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"size-baseline": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
1111
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
1212
"format": "prettier --write --cache --parser typescript \"packages/**/*.ts?(x)\"",
13+
"format-check": "prettier --check --cache --parser typescript \"packages/**/*.ts?(x)\"",
1314
"test": "run-s \"test-unit {@}\" \"test-e2e {@}\"",
1415
"test-unit": "jest --filter ./scripts/filter-unit.js",
1516
"test-e2e": "node scripts/build.js vue -f global -d && jest --filter ./scripts/filter-e2e.js --runInBand",

0 commit comments

Comments
 (0)