Strict, scoped precisely
Flip "strict": true only for the files, directories, or globs you've opted in — everything else stays on your normal tsconfig.
A fast, Rust-powered strict-only type checker built on Microsoft's tsgo — so you can adopt `strict: true` incrementally, without drowning the build.
typescript-strict-plugin + tscnpm install --save-dev @coralogix/tsgo-strict typescript@^7
# or
pnpm add -D @coralogix/tsgo-strict typescript@^7Requires a native TypeScript compiler — TypeScript 7+, or @typescript/native-preview if your app isn't on v7 yet (install that instead and tsgo-strict uses it without touching your app's typescript).
Add a plugin block to your tsconfig.json:
{
"compilerOptions": {
"plugins": [
{
"name": "typescript-strict-plugin",
"paths": ["./src/strict", "./src/shared"],
"excludePattern": ["**/*.test.ts"]
}
]
}
}Then run the checker:
npx tsgo-strictFiles under paths are checked under strict mode. Everything else stays on your normal tsconfig — and its diagnostics are filtered out of the output. Drop a // @ts-strict or // @ts-strict-ignore at the top of any file to override the config for that single file.
Ready to go deeper? Head to Getting Started for a full walkthrough, or How it works to see the pipeline.