1// source from https://stackoverflow.com/questions/36916989/how-can-i-generate-a-tsconfig-json-file
2$ tsc --init
3// Try to run in your console the following to check the version:
4$ tsc -v
5// If the version is older than 1.6 you will need to update:
6$ npm install -g typescript
7// Remember that you need to install node.js to use npm.
1{
2 "compilerOptions": {
3 "module": "esnext",
4 "target": "es2016",
5 "jsx": "react-jsx",
6 "strictFunctionTypes": true,
7 "sourceMap": true,
8 "outDir": "./build",
9 "lib": ["dom", "dom.iterable", "esnext"],
10 "allowJs": true,
11 "skipLibCheck": true,
12 "esModuleInterop": true,
13 "allowSyntheticDefaultImports": true,
14 "strict": true,
15 "forceConsistentCasingInFileNames": true,
16 "noFallthroughCasesInSwitch": true,
17 "moduleResolution": "node",
18 "resolveJsonModule": true,
19 "isolatedModules": true,
20 "noEmit": true
21 },
22 "exclude": ["node_modules", "**/node_modules/*"],
23 "include": ["src", "electron/renderer.ts"]
24}
25
26
1{
2 "compilerOptions": {
3 "target": "ES2015",
4 "module": "commonjs",
5 "lib": [ "ES2015", "dom" ],
6 "sourceMap": true,
7 "outDir": "./script",
8 "strict": true,
9 "strictNullChecks": true,
10 "strictFunctionTypes": true,
11 "noImplicitThis": true,
12 "alwaysStrict": true,
13 "noImplicitReturns": true,
14 "noFallthroughCasesInSwitch": true,
15 "esModuleInterop": true,
16 "experimentalDecorators": true,
17 }
18}