Skip to content

Commit 6b0946e

Browse files
committed
add format check script to ci
1 parent 2724145 commit 6b0946e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ jobs:
1818
- run: pnpm install --frozen-lockfile
1919
- run: pnpm typecheck
2020
- run: pnpm lint
21+
- run: pnpm format:check
2122
- run: pnpm test
2223
- run: pnpm build

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"test": "vitest run",
1212
"typecheck": "tsc -b",
1313
"lint": "eslint .",
14-
"format": "prettier --write ."
14+
"format": "prettier --write .",
15+
"format:check": "prettier --check ."
1516
},
1617
"dependencies": {
1718
"@dagrejs/dagre": "^3.0.0",

0 commit comments

Comments
 (0)