---
name: aiskillstore-lint-typecheck
description: "Run ESLint and TypeScript type checking on the frontend codebase. Use when user mentions \"lint\", \"type check\", \"check code\", \"eslint\", \"tsc\", or before committing changes."
metadata:
  decimalai-skill-id: "d3c10050-47a9-4e43-a769-3903cf80ac1d"
  decimalai-version-id: "8e866eec-e33b-4dd3-81ed-c040d0868021"
  decimalai-version: "1"
  decimalai-body-sha256: "ecf70035d103d0466d6c79e8d49ded0f509e10eb941d28850cae93b5ed72ec30"
  decimalai-name: "aiskillstore/lint-typecheck"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "code-review"
  decimalai-source: "https://app.decimal.ai/s/aiskillstore-lint-typecheck@1/SKILL.md"
---
# Lint and Type Check

## Instructions
1. Navigate to frontend directory and run lint:
   ```bash
   cd frontend && npm run lint
   ```

2. Run TypeScript compilation check (no emit):
   ```bash
   cd frontend && npx tsc -b --noEmit
   ```

3. If errors are found:
   - List all errors with file locations
   - Offer to fix auto-fixable ESLint issues: `npm run lint -- --fix`
   - For TypeScript errors, identify the type mismatches

4. Report summary: X lint warnings, Y lint errors, Z type errors

## Examples
- "Run lint on the frontend"
- "Check for type errors"
- "Validate code before commit"

## Guardrails
- Run in read-only mode first; only apply `--fix` with user confirmation
- Do not modify tsconfig.json to suppress errors
- Report all issues before attempting fixes
