tsconfig.json
tsconfig.json sets compiler options. Turn on strict for the best safety, plus target and module.
Example
const cfg = { compilerOptions: { target: "ES2022", module: "ESNext", strict: true } };
console.log(JSON.stringify(cfg, null, 2));Result
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"strict": true
}
}Exercise
Strict mode.
"": true
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.