-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtsconfig.base.json
14 lines (14 loc) · 1.23 KB
/
tsconfig.base.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"compilerOptions": {
"target": "ES6", // compiles down to ES6 for better compatibility with modern browsers and Node.js
"module": "ESNext", // uses ES modules to enable tree shaking and module optimization
"moduleResolution": "node", // resolves modules like Node.js, helpful for Node and frontend compatibility
"esModuleInterop": true, // allows importing CommonJS modules with `import` syntax (e.g., `import x from 'y'`)
"forceConsistentCasingInFileNames": true, // prevents issues from inconsistent file name casing across different OSes (e.g., "foo.ts" vs "Foo.ts")
"strict": true, // enables all strict type-checking options (e.g., `noImplicitAny`, `strictNullChecks`, etc.) for better type safety
"skipLibCheck": true, // speeds up compilation by skipping type checking of declaration files (.d.ts), useful for large projects
"noUncheckedIndexedAccess": true, // ensures array elements and object properties are properly checked for undefined when accessed with an index (e.g., `arr[0]`)
"noEmit": true, // disables generating output files, just checks types; useful as a linter for type-checking without building
"types": ["node"] // includes Node.js types for better IntelliSense and type-checking
}
}