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:
```bash
npm run lint
```
Checks code style and quality with Oxlint.
- Type Checking:
```bash
npm run typecheck
```
Verifies TypeScript types are correct.
- Formatting:
```bash
npm run format
```
Writes formatted source with Oxfmt.
- Formatting (check only):
```bash
npm run format:check
```
Verifies formatting without modifying files.
- Lint and format:
```bash
npm run prettify
```
Runs lint, then applies Oxfmt.
- Tests:
```bash
npm run test:run
```
Runs all unit tests.
- Test Coverage:
```bash
npm run test:coverage
```
Generates coverage report.
- E2E Tests:
```bash
npm run test:e2e
```
Runs end-to-end tests with Playwright.
- Accessibility Tests:
```bash
npm run test:a11y
```
Runs 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