Skip to content

Commit af01a31

Browse files
committed
ci: add format:check script and verify prettier in CI
1 parent f310f61 commit af01a31

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Lint
3131
run: npm run lint
3232

33+
- name: Format
34+
run: npm run format:check
35+
3336
- name: Typecheck
3437
run: npm run typecheck
3538

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"typecheck": "tsc --noEmit",
1515
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
1616
"lint:fix": "eslint --fix \"src/**/*.ts\" \"test/**/*.ts\"",
17-
"format": "prettier --write \"src/**/*.{ts,css}\" \"test/**/*.ts\""
17+
"format": "prettier --write \"src/**/*.{ts,css}\" \"test/**/*.ts\"",
18+
"format:check": "prettier --check \"src/**/*.{ts,css}\" \"test/**/*.ts\""
1819
},
1920
"devDependencies": {
2021
"@types/node": "^20.19.41",

0 commit comments

Comments
 (0)