
Security News
Rust 1.100 Will Add Dependency Cooldowns to Cargo
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.
@comment-labs/tsconfig
Advanced tools
Shared TypeScript configuration presets for comment-labs projects.
pnpm add -D @comment-labs/tsconfig typescript
TypeScript ^5.9.2 || ^6.x is required.
Create a tsconfig.json in your project and extend the preset that matches your target runtime:
{
"extends": "@comment-labs/tsconfig/node",
"compilerOptions": {
"paths": {
"#/*": ["./src/*"]
}
},
"include": ["src/**/*", "*.ts"]
}
Then type-check with:
pnpm tsc --noEmit
| Project type | Extend path |
|---|---|
| Node.js | @comment-labs/tsconfig/node |
| Cloudflare Workers | @comment-labs/tsconfig/workers |
| Workers with React | @comment-labs/tsconfig/react-workers |
| Workers with Vitest | @comment-labs/tsconfig/workers-vitest |
| Astro | @comment-labs/tsconfig/astro-workers |
| Astro with React | @comment-labs/tsconfig/react-astro |
| Astro with React on Workers | @comment-labs/tsconfig/react-astro-workers |
| React web | @comment-labs/tsconfig/react |
| React Native / Expo | @comment-labs/tsconfig/react-native |
If none of these fit, fall back to @comment-labs/tsconfig/base.
All presets enable strict type checking, bundler module resolution, isolated modules and target ES2023.
The workers-vitest preset is split into three configs so tsc --build can type-check the app and its Worker tests as separate project references:
@comment-labs/tsconfig/workers-vitest — root config for config files and scripts.@comment-labs/tsconfig/workers-vitest-app — app source (composite, declaration-emitting).@comment-labs/tsconfig/workers-vitest-test — Worker tests with the Cloudflare Vitest pool types.// tsconfig.json
{
"extends": "@comment-labs/tsconfig/workers-vitest",
"compilerOptions": { "paths": { "#/*": ["./src/*"] } },
"include": ["e2e", "scripts", "*.ts"],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./test/tsconfig.json" }
]
}
// tsconfig.app.json
{
"extends": "@comment-labs/tsconfig/workers-vitest-app",
"compilerOptions": {
"paths": { "#/*": ["./src/*"] },
"outDir": "build/src",
"rootDir": "src"
},
"include": ["src"]
}
// test/tsconfig.json
{
"extends": "@comment-labs/tsconfig/workers-vitest-test",
"compilerOptions": {
"paths": { "#/*": ["../src/*"] },
"outDir": "../build/test"
},
"include": ["**/*", "*.ts", "../src/environment.d.ts"],
"references": [{ "path": "../tsconfig.app.json" }]
}
FAQs
Base tsconfig for comment-labs packages
We found that @comment-labs/tsconfig demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.