ente/desktop/tsconfig.json

38 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2021-03-27 12:35:04 +00:00
{
2024-03-13 16:21:08 +00:00
/* TSConfig for a set of vanilla TypeScript files that need to be transpiled
into JavaScript that'll then be loaded and run by the main (node) process
of our Electron app. */
2024-04-30 10:29:10 +00:00
/*
* Recommended target, lib and other settings for code running in the
* version of Node.js bundled with Electron.
*
* Currently, with Electron 30, this is Node.js 20.11.1.
* https://www.electronjs.org/blog/electron-30-0
*/
"extends": "@tsconfig/node20/tsconfig.json",
2024-03-13 16:21:08 +00:00
2024-04-30 10:29:10 +00:00
/* TSConfig docs: https://aka.ms/tsconfig.json */
2021-03-30 11:26:50 +00:00
"compilerOptions": {
2024-04-30 10:14:16 +00:00
/* Emit the generated JS into `app/` */
"outDir": "app",
2024-03-13 16:21:08 +00:00
/* Require the `type` modifier when importing types */
2024-04-30 10:14:16 +00:00
/* We want this, but it causes "ESM syntax is not allowed in a CommonJS
module when 'verbatimModuleSyntax' is enabled" currently */
/* "verbatimModuleSyntax": true, */
2024-03-13 16:21:08 +00:00
2024-04-30 10:14:16 +00:00
"strict": true,
2024-03-13 16:21:08 +00:00
/* Stricter than strict */
2024-04-30 10:14:16 +00:00
"noImplicitReturns": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"noFallthroughCasesInSwitch": true,
2024-03-13 16:21:08 +00:00
/* e.g. makes array indexing returns undefined */
2024-04-30 10:14:16 +00:00
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true
2021-03-30 11:26:50 +00:00
},
2024-03-13 16:21:08 +00:00
/* Transpile all `.ts` files in `src/` */
2024-03-11 11:30:34 +00:00
"include": ["src/**/*.ts"]
2021-03-30 11:26:50 +00:00
}