跳到主要内容
知仓学习社ZHICANG

typescript-check

TypeScript type checking via tsc --noEmit with actionable error output.

不碰外部(只输出文字)无严重或高危命中notque/vexjoy-agent

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

TypeScript check

Read-only type validation. Follow repository instructions and package scripts; preserve project compiler settings. Do not fix code, change configuration, or install dependencies for a check-only request.

Run

  1. Locate tsconfig.json, including src/, app/, and packages/. In a monorepo, use the package affected by the task or the repository's aggregate check. Ask only when the target cannot be inferred. If no config exists, report the missing configuration and stop.
  2. Confirm TypeScript is installed locally before using npx; do not allow an implicit package download.
  3. Run npx tsc --noEmit 2>&1, or npx tsc --noEmit --project path/to/tsconfig.json 2>&1 for a selected config. Capture output and exit code. Zero means pass; nonzero may mean type errors or a tool/configuration failure—report which.
  4. Report status and error count. Group diagnostics by file and line, retaining file:line:column, TS####, and the message. Retain complete logs; show useful failure details instead of all successful output.

Recovery and flags

  • TypeScript missing: report it; suggest npm install typescript --save-dev within dependency setup.
  • npx missing: check node --version; when Node/npm and local TypeScript exist, use npm exec tsc -- --noEmit. Otherwise report the missing toolchain.
  • Multiple configs: list the checked configs and any omitted packages. A single-package pass is not a whole-repository pass.
  • --skipLibCheck: skips declaration-file checking; use only when configured or requested, not to hide failures.
  • --strict: adds strict checks; enable only when requested or configured.
  • --incremental: may write build-info cache files; enable only when permitted, not for a strictly read-only run.
  • Named files: passing files directly bypasses project config. Prefer --project; do not claim equivalent coverage from a narrower check.

When running the full JavaScript/TypeScript check sequence, lint first, type-check next, then run tests with vitest-runner or the repository test command.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 419
本站分层T2
该仓技能数122
原文件路径skills/code-quality/typescript-check/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 122 个技能