XJavascript.com
Toggle Menu
Home
Online Javascript Compiler
Tutorials
JavaScript Tutorials
TypeScript Tutorials
Blog
All Posts
TypeScript Configuration and Tooling
Understand tsconfig,build tools,and compiler options.
1. What is the default 'target' value in tsconfig.json if not specified in TypeScript 4.8+?
ES3
ES5
ES2015
ES2016
2. Which tsconfig option enables strict type-checking features like noImplicitAny, strictNullChecks, and others?
strict
strictMode
typeCheck
enforceTypes
3. Which file is the primary configuration file for TypeScript projects?
.tsrc
tsconfig.json
typescript.config.js
tsconfig.js
4. Which tool allows running TypeScript files directly without prior compilation to JavaScript?
ts-run
ts-exec
ts-node
tsc-run
5. What is the file extension for TypeScript declaration files?
.ts.d
.d.ts
.type.ts
.decl.ts
6. Which 'module' option in tsconfig.json is suitable for Node.js environments?
ESNext
AMD
CommonJS
UMD
7. What does the 'outDir' option in tsconfig.json control?
Input directory for source files
Output directory for compiled JavaScript
Directory for declaration files
Temporary build directory
8. Which tsconfig option prevents the compiler from generating output files?
noGenerate
noOutput
noEmit
skipEmit
9. Which tool is used to integrate ESLint with TypeScript?
eslint-ts
@typescript-eslint
tslint-eslint
eslint-plugin-typescript
10. What is the default module resolution strategy in TypeScript?
Classic
Node
Modern
Browser
11. Which of the following are enabled when the 'strict' option is set to true in tsconfig.json? (Select all that apply)
noImplicitAny
strictNullChecks
allowJs
alwaysStrict
12. Which tools are commonly used for formatting and linting TypeScript code? (Select all that apply)
Prettier
TSLint
@typescript-eslint
dprint
13. Which tsconfig options affect module resolution? (Select all that apply)
moduleResolution
baseUrl
paths
target
14. Which are valid values for the 'target' option in tsconfig.json? (Select all that apply)
ES3
ES2020
ESNext
Latest
15. The 'include' option in tsconfig.json specifies files to exclude from compilation.
True
False
16. TypeScript declaration files (.d.ts) contain executable code.
True
False
17. tsc --watch recompiles TypeScript files automatically when changes are detected.
True
False
18. What command compiles a TypeScript project using tsconfig.json settings?
19. Name the popular formatter for consistent TypeScript code style (one word)
20. What is the abbreviation for the TypeScript compiler (three letters)
Reset
Answered 0 of 0 — 0 correct