tsconfig.json

The configuration file that tells the TypeScript compiler which files to check and how strict to be.

In more detail

It sets options such as strictness, target JavaScript version and module format. Projects can extend a shared base config.

Examples

A base tsconfig in packages/ that each app extends.
{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "strict": true }, "include": ["src/**/*"] }

Related terms

Taught in

References