Use to validate a TypeScript project by running all checks: tsc, ESLint, Prettier, and Vitest. Ensures project is CI-ready.
From psnnpx claudepluginhub aladac/claude-pluginsThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Deploys Linkerd service mesh on Kubernetes with patterns for installation, proxy injection, mTLS, service profiles (retries/metrics), traffic splits (canary), and authorization policies.
Full validation workflow for TypeScript projects.
# Full validation (typecheck + lint + format + test)
npx tsc --noEmit && npx eslint src/ && npx prettier --check src/ && npx vitest run
# With Biome (alternative)
npx tsc --noEmit && npx biome check src/ && npx vitest run
npx tsc --noEmit
npx eslint src/
Fix issues:
npx eslint --fix src/
npx prettier --check src/
Fix issues:
npx prettier --write src/
# Full test suite
npx vitest run
# With coverage
npx vitest run --coverage
# Watch mode
npx vitest
All-in-one lint + format:
# Check all
npx biome check src/
# Fix all
npx biome check --apply src/
{
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
"lint": "eslint src/",
"lint:fix": "eslint --fix src/",
"format": "prettier --write src/",
"format:check": "prettier --check src/",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"validate": "npm run typecheck && npm run lint && npm run format:check && npm run test",
"fix": "npm run lint:fix && npm run format"
}
}
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Lint
run: npx eslint src/
- name: Format check
run: npx prettier --check src/
- name: Test
run: npx vitest run --coverage
- uses: codecov/codecov-action@v4
npm install -D husky lint-staged
npx husky init
// package.json
{
"lint-staged": {
"*.ts": ["eslint --fix", "prettier --write"],
"*.{json,md}": "prettier --write"
}
}
| Check | Command | Fix |
|---|---|---|
| Types | tsc --noEmit | Fix type errors |
| Lint | eslint src/ | eslint --fix src/ |
| Format | prettier --check src/ | prettier --write src/ |
| Tests | vitest run | Fix failing tests |
| Coverage | vitest run --coverage | Add tests |
# Verbose output
npx tsc --noEmit --pretty
# Check specific file
npx tsc --noEmit src/problematic.ts
# See all issues
npx eslint src/
# Fix automatically
npx eslint --fix src/
# Disable for line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
# Check what would change
npx prettier --check --write src/
# Fix all
npx prettier --write src/
# Run specific test file
npx vitest run src/foo.test.ts
# Run with verbose output
npx vitest run --reporter=verbose
# Update snapshots
npx vitest run -u
If using bun:
# Install
bun install
# Run commands
bun run typecheck
bun run lint
bun test
If using pnpm:
# Install
pnpm install
# Run commands
pnpm run typecheck
pnpm run lint
pnpm test