What It Collects
Reads tsconfig.json compiler options to assess strictness and modernity.
Analyzed Options
| Option | What It Tells Us |
|---|---|
| TypeScript version | How current your TS is |
strict | Full strict mode enabled |
noImplicitAny | Type safety level |
strictNullChecks | Null handling |
module | Module system |
moduleResolution | Resolution strategy |
target | Output ES version |
exports in package.json | ESM readiness |
Modernity Scoring
| Level | Criteria |
|---|---|
| Modern | strict=true, ESM, TS 5.x |
| Mature | strict=true, CJS or ESM |
| Legacy | strict=false, older TS |
Example Output
{
"tsModernity": {
"version": "5.3.3",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ES2022",
"classification": "modern-esm"
}
}