Skip to content

Commit 9d9c311

Browse files
committed
Update tsconfig
- Replaced individual type checking options with `strict: true`. - Changed `module` & `target` to `ES2020` with `moduleResolution` set to `Node16` as Electron `v19` is fully compatible with `ES2020`. - Fixed #14 `import React from 'react'` not working by enabling `esModuleInterop`. - Removed path alias `_models/*` as that folder contains nothing to ship with this bolierplate.
1 parent edf8938 commit 9d9c311

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tsconfig.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
4-
"jsx": "react",
3+
"strict": true,
54
"baseUrl": ".",
5+
"module": "ES2020",
6+
"moduleResolution": "Node16",
67
"paths": {
78
"_/*": ["src/*"],
89
"_public/*": ["public/*"],
910
"_main/*": ["src/main/*"],
10-
"_models/*": ["src/models/*"],
1111
"_preload/*": ["src/preload/*"],
1212
"_renderer/*": ["src/renderer/*"],
1313
"_types/*": ["src/types/*"],
@@ -18,13 +18,11 @@
1818
"./node_modules/@types",
1919
"./src/types"
2020
],
21-
"module": "commonjs",
22-
"moduleResolution": "node",
23-
"noImplicitAny": true,
24-
"noImplicitThis": true,
25-
"strictNullChecks": true,
2621
"sourceMap": true,
27-
"target": "esnext"
22+
"allowSyntheticDefaultImports": true,
23+
"esModuleInterop": true,
24+
"jsx": "react",
25+
"target": "ES2020"
2826
},
2927
"include": ["src/**/*", "tests/**/*"]
3028
}

0 commit comments

Comments
 (0)