@better-typescript/better-typescript

中文文档
0.5.3发布于 2026/10/16MIT零依赖近 30 天下载 4946

Type-aware TypeScript linter

原始使用文档

Better TypeScript

Type-aware TypeScript linting as a native executable.

npm install --save-dev @better-typescript/better-typescript
npx better-typescript

Run the command from a directory containing tsconfig.json. Violations are written as NDJSON to stdout.

Run npx better-typescript semantic for working-tree changes, semantic --files 'src/**/*.ts' for selected current files, semantic --all for all eligible current files, or semantic --range 'origin/main...HEAD' for a committed range. Add --rules function-naming,readonly to select policies or --dry-run to inspect routing. Live semantic lint requires TYPESAFE_API_KEY in the environment or .env.

版本与发布记录

@better-typescript/better-typescript 共发布 42 个版本,首次发布于 2026/08/25;过去 12 个月发布了 42 个版本。

版本发布日期距今
0.5.3latest2026/10/1622 天前
0.5.22026/10/1523 天前
0.5.12026/10/1424 天前
0.5.02026/10/1425 天前
0.4.302026/10/1425 天前
0.4.292026/09/231 个月前

其他发布通道:bootstrap → 0.0.0-bootstrap.0。

关于 @better-typescript/better-typescript 的常见问题

@better-typescript/better-typescript 是什么?

Type-aware TypeScript linter

如何安装 @better-typescript/better-typescript?

在项目目录运行 npm install @better-typescript/better-typescript,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 better-typescript,可以用 npx better-typescript 直接运行。

@better-typescript/better-typescript 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/better-typescript__better-typescript 是否存在。

@better-typescript/better-typescript 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@better-typescript/better-typescript 可以商用吗?

@better-typescript/better-typescript 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@better-typescript/better-typescript 的下载量有多少?

根据 npm 官方下载统计,@better-typescript/better-typescript 在 2026/10/08 – 2026/11/06 这 30 天内被下载 4,946 次,日均约 165 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@better-typescript/better-typescript 还在维护吗?

最新版本 0.5.3 发布于 2026/10/16(22 天前);至今共发布 42 个版本,其中过去 12 个月发布了 42 个;首次发布于 2026/08/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。