| name | lint |
| description | Run linting and type checking across the Terrae codebase |
| allowed-tools | Bash(npx tsc *), Bash(npm run lint*), Bash(npm run format*) |
Lint Skill
Run linting and type checking across the Terrae codebase.
Instructions
-
Run Type Checking
npx tsc --noEmit
This checks TypeScript types without emitting files.
-
Run ESLint
npm run lint
This runs ESLint on the codebase.
-
Run Prettier Check
npm run format:check
This checks if files are properly formatted.
-
Report Results
- List any type errors with file locations
- List any linting errors/warnings
- List any formatting issues
-
Offer to Fix
If issues are found, ask the user if they want to:
- Auto-fix linting issues:
npm run lint -- --fix
- Auto-format files:
npm run format
- Manually address type errors (show each error)
-
Re-verify
After fixes, run the checks again to confirm all issues are resolved.