name: run-quality-checks description: Run all quality checks including linting, type checking, and tests. Use when the user wants to verify code quality, before committing, or when preparing a PR.
Run Quality Checks
Execute all code quality checks for the Spark UI project.
When to Use
- Before committing code
- When preparing a PR
- User wants to verify code quality
- User mentions "lint", "typecheck", or "quality"
Instructions
-
Linting:
npm run lintChecks code style and quality with Oxlint.
-
Type Checking:
npm run typecheckVerifies TypeScript types are correct.
-
Formatting:
npm run formatWrites formatted source with Oxfmt.
-
Formatting (check only):
npm run format:checkVerifies formatting without modifying files.
-
Lint and format:
npm run prettifyRuns lint, then applies Oxfmt.
-
Tests:
npm run test:runRuns all unit tests.
-
Test Coverage:
npm run test:coverageGenerates coverage report.
-
E2E Tests:
npm run test:e2eRuns end-to-end tests with Playwright.
-
Accessibility Tests:
npm run test:a11yRuns accessibility tests.
Complete Quality Pipeline
For a complete check before PR:
npm run lint && npm run format:check && npm run typecheck && npm run test:run && npm run test:a11y