lint-typecheck
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.
When & Why to Use This Skill
This Claude skill automates frontend code quality assurance by performing comprehensive ESLint and TypeScript type checking. It streamlines the development workflow by identifying syntax errors, style violations, and type mismatches, providing developers with actionable reports and the ability to automatically fix linting issues to maintain a clean, production-ready codebase.
Use Cases
- Pre-commit Validation: Use the skill to verify code integrity before committing changes, ensuring that no linting errors or type mismatches are introduced into the repository.
- Automated Code Audits: Quickly scan large frontend codebases to identify technical debt, inconsistent coding styles, or hidden type errors that could lead to runtime failures.
- Refactoring Support: After making significant changes to shared types or components, run the type checker to instantly locate and resolve all downstream type mismatches across the project.
- Continuous Quality Monitoring: Integrate as a standard check during the development process to provide real-time feedback on code health and adherence to project-specific linting rules.
| name | 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. |
| allowed-tools | Bash, Read |
Lint and Type Check
Instructions
Navigate to frontend directory and run lint:
cd frontend && npm run lintRun TypeScript compilation check (no emit):
cd frontend && npx tsc -b --noEmitIf 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
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
--fixwith user confirmation - Do not modify tsconfig.json to suppress errors
- Report all issues before attempting fixes