add check-format script and use it in CI

This commit is contained in:
Arian Daneshvar
2025-04-15 17:53:31 -07:00
parent 153ad5ea3e
commit 00d4da2a53
2 changed files with 3 additions and 2 deletions

View File

@@ -66,5 +66,5 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm run format
- run: npm run check-format

View File

@@ -14,7 +14,8 @@
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
"lint:eslint": "eslint . --fix",
"lint": "run-s lint:*",
"format": "prettier --write src/"
"format": "prettier --write src/",
"check-format": "prettier --check src"
},
"dependencies": {
"@primeuix/themes": "^1.0.0",