# Lint

> Project-specific linting and type-checking commands. Customize for your project.

- Skill: `clouder0/lint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clouder0/lint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clouder0/lint/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Clouder0 (https://skillmd.com/u/clouder0)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/clouder0/lint

---


# Lint Skill (Project-Specific)

**CUSTOMIZE THIS FILE FOR YOUR PROJECT.**

## Quick Reference

```bash
# TypeScript (bun + biome/eslint)
bunx biome check .
bunx eslint .
bunx tsc --noEmit

# Python (uv + ruff/mypy)
uv run ruff check .
uv run ruff format --check .
uv run mypy src/
```

## Lint Commands

### TypeScript/JavaScript

```bash
# Biome (recommended - fast)
bunx biome check .              # Lint + format check
bunx biome check --apply .      # Auto-fix

# ESLint
bunx eslint .
bunx eslint . --fix

# TypeScript type-check
bunx tsc --noEmit
```

### Python

```bash
# Ruff (recommended - fast)
uv run ruff check .             # Lint
uv run ruff check --fix .       # Auto-fix
uv run ruff format --check .    # Format check
uv run ruff format .            # Auto-format

# Mypy type-check
uv run mypy src/
uv run mypy src/ --strict
```

## Expected Output

Lint/typecheck should exit with:
- Exit code 0 = No issues
- Exit code 1 = Issues found

## Integration with Self-Test

After implementing code:
```
1. Run lint: bunx biome check . (or uv run ruff check .)
2. If issues → fix them
3. Run typecheck: bunx tsc --noEmit (or uv run mypy src/)
4. If type errors → fix them
5. Continue to tests
```

## Common Issues

| Issue | Fix |
|-------|-----|
| Unused import | Remove it or add `// biome-ignore` |
| Type mismatch | Fix the type or add explicit annotation |
| Formatting | Run auto-format command |

