[CI] Add lint/format/typecheck to ci (#494)

This commit is contained in:
Chenlei Hu
2025-02-08 21:24:06 -05:00
committed by GitHub
parent de74d8a08c
commit 0d5f7d79bd
2 changed files with 12 additions and 1 deletions

View File

@@ -25,6 +25,15 @@ jobs:
run: |
npm ci
npm run build
- name: Run lint
run: |
npm run lint
- name: Run typecheck
run: |
npm run typecheck
- name: Run format
run: |
npm run format
- name: Run vitest tests
run: |
npm test -- --reporter=verbose

View File

@@ -28,7 +28,9 @@
"release": "node scripts/release.js",
"test": "vitest",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
"lint:fix": "eslint src --fix",
"format": "prettier --check './src/*.{js,ts,tsx,vue,mts}'",
"format:fix": "prettier --write './src/*.{js,ts,tsx,vue,mts}'"
},
"repository": {
"type": "git",