@electron-toolkit/tsconfig
TSConfigs for Electron projects to extend.
Requires TypeScript >= 4.5.
Install:
npm add -D @electron-toolkit/tsconfig
Add one of the available configurations to your tsconfig.json
:
The base configuration:
"extends": "@electron-toolkit/tsconfig/tsconfig.json"
Configuration for Browser environment (Renderer process):
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json"
Configuration for Node environment (Main process and Preload scripts):
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json"