lint

Clouder0 的头像作者 Clouder0

如何在此项目中进行代码检查和类型检查。在实现或验证代码时加载。

📖 中文导读:如何在此项目中进行代码检查和类型检查。在实现或验证代码时加载。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: lint description: How to lint and typecheck in this project. Load when implementing or verifying code. allowed-tools: Bash

Lint Skill

Project-specific linting and typechecking.

Lint Commands

# Run linter
# TODO: Add your lint command
npx eslint {files}
# ruff check {files}
# golangci-lint run

# Auto-fix
npx eslint {files} --fix
# ruff check {files} --fix

Typecheck Commands

# Run typecheck
# TODO: Add your typecheck command
npx tsc --noEmit
# mypy {files}
# go build ./...

Common Issues

Import Order

Run auto-fix to sort imports.

Unused Variables

Remove or prefix with _.

Type Errors

Check that types match expected signatures.