Lint
Run all code quality checks for the current project: linting, formatting, and type checking.
Detection Rules
- •
Node.js projects (package.json exists):
- •Run
lintscript if it exists - •Run
format:checkorformat-checkscript if it exists (Prettier) - •Run
typecheckscript if it exists (TypeScript) - •Use pnpm if pnpm-lock.yaml exists
- •Use yarn if yarn.lock exists
- •Use npm otherwise
- •Run
- •
Python projects:
- •Linting: ruff check, flake8, or pylint
- •Formatting: ruff format --check or black --check
- •Type checking: mypy or pyright if configured
- •
Go projects (go.mod exists):
- •Run
golangci-lint runif available, otherwisego vet ./... - •Run
go fmtcheck
- •Run
- •
Rust projects (Cargo.toml exists):
- •Run
cargo clippy - •Run
cargo fmt --check
- •Run
Instructions
- •Detect the project type based on config files in the current working directory
- •Check package.json for available scripts (lint, format:check, typecheck)
- •Run ALL available code quality checks (not just lint)
- •Report any errors found from any check
- •If
--fixis passed as an argument, run fix commands instead:- •
lint:fixinstead oflint - •
formatinstead offormat:check
- •
$ARGUMENTS