You are viewing a free preview of this lesson.
Subscribe to unlock all 12 lessons in this course and every other course on LearningBro.
A well-configured TypeScript project is easier to maintain, produces fewer bugs, and provides a better developer experience. This lesson covers the tsconfig.json file in depth, recommended compiler options, linting with ESLint, declaration files, and strategies for migrating JavaScript projects to TypeScript.
The tsconfig.json file is the heart of every TypeScript project. It tells the compiler which files to include, what JavaScript version to target, and how strictly to check your code.
Generate a starter config with:
// npx tsc --init
The strict flag enables a family of strict type-checking options:
// tsconfig.json
// {
// "compilerOptions": {
// "strict": true
// }
// }
Subscribe to continue reading
Get full access to this lesson and all 12 lessons in this course.