/
tsconfig.json
28 lines (28 loc) · 1.17 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"compilerOptions": {
// Signifies which target of JavaScript should be emitted?
"target": "ES2015",
// What module format should be emitted?
"module": "ES2015",
// See: https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Module%20Resolution.md
"moduleResolution": "node",
// Output destination
"outDir": "dist",
// Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
"esModuleInterop": true,
// Don't typecheck libraries in node_modules
"skipLibCheck": true,
// Export type declarations and only type declrations. No extra source files to dist.
"emitDeclarationOnly": true,
"declaration": true,
// Enables --noImplicitAny, --dnoImplicitThis, --alwaysStrict, --strictBindCallApply, --strictNullChecks, --strictFunctionTypes and --strictPropertyInitialization.
"strict": true,
// Minor style enforcements
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
// The following can be set to false in development to make prototyping easier.
"noUnusedLocals": true,
"noUnusedParameters": true
},
"files": ["index.ts"]
}