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:
bash1npm run lintChecks code style and quality with ESLint.
-
Type Checking:
bash1npm run typecheckVerifies TypeScript types are correct.
-
Formatting:
bash1npm run prettierChecks and fixes code formatting.
-
All Formatting Checks:
bash1npm run prettifyRuns both lint and prettier.
-
Tests:
bash1npm run test:runRuns all unit tests.
-
Test Coverage:
bash1npm run test:coverageGenerates coverage report.
-
E2E Tests:
bash1npm run test:e2eRuns end-to-end tests with Playwright.
-
Accessibility Tests:
bash1npm run test:a11yRuns accessibility tests.
Complete Quality Pipeline
For a complete check before PR:
bash1npm run lint && npm run typecheck && npm run test:run && npm run test:a11y