chore: extend lint and format commands to include UI

Add ui/src to lint, lint:fix, format, and format:fix scripts
so the UI codebase is covered by the same quality checks as
the main source code.
This commit is contained in:
Cyrus Goh 2026-01-25 13:35:36 -08:00
parent aace1cd4c7
commit 2d451b30f9
No known key found for this signature in database
GPG Key ID: D547D2AF3FD0FD5A

View File

@ -107,14 +107,14 @@
"mac:restart": "bash scripts/restart-mac.sh",
"mac:package": "bash scripts/package-mac-app.sh",
"mac:open": "open dist/Clawdbot.app",
"lint": "oxlint --type-aware src test",
"lint": "oxlint --type-aware src test ui/src",
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
"lint:all": "pnpm lint && pnpm lint:swift",
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix src test",
"format": "oxfmt --check src test",
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix src test ui/src",
"format": "oxfmt --check src test ui/src",
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/ClawdbotKit/Sources",
"format:all": "pnpm format && pnpm format:swift",
"format:fix": "oxfmt --write src test",
"format:fix": "oxfmt --write src test ui/src",
"test": "node scripts/test-parallel.mjs",
"test:watch": "vitest",
"test:ui": "pnpm --dir ui test",