Set `"strict": true` in tsconfig
Open
Nobody has claimed this yet.
breaking change
enhancement
typescript
v2
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 899
- Avg merge
- 2d 24m
- Merged PRs (30d)
- 40
Description
Describe the feature
As in Nuxt, strict should ideally be enabled by default.
Additional information
Overwriting tsconfig works as well so far:
// https://nitro.unjs.io/guide/typescript
{
"extends": "./.nitro/types/tsconfig.json",
"compilerOptions": {
"strict": true
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the TypeScript configuration described in the issue and the linked Nitro TypeScript guide, especially the generated .nitro/types/tsconfig.json and the extending tsconfig. Verify where the default compiler options are defined and whether enabling strict preserves the existing type-checking behavior; done means the default configuration enables strict without requiring the documented override.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100