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:
bashnpm run lint
Checks code style and quality with ESLint.
- •
Type Checking:
bashnpm run typecheck
Verifies TypeScript types are correct.
- •
Formatting:
bashnpm run prettier
Checks and fixes code formatting.
- •
All Formatting Checks:
bashnpm run prettify
Runs both lint and prettier.
- •
Tests:
bashnpm run test:run
Runs all unit tests.
- •
Test Coverage:
bashnpm run test:coverage
Generates coverage report.
- •
E2E Tests:
bashnpm run test:e2e
Runs end-to-end tests with Playwright.
- •
Accessibility Tests:
bashnpm run test:a11y
Runs accessibility tests.
Complete Quality Pipeline
For a complete check before PR:
bash
npm run lint && npm run typecheck && npm run test:run && npm run test:a11y