Skip to content

Commit ad8cc2c

Browse files
committed
refactor(tsconfig): enable noUncheckedIndexedAccess
Also took some tips from https://www.totaltypescript.com/tsconfig-cheat-sheet Not implemented any of the options mentioned, but also it's worth looking to https://www.totaltypescript.com/typescript-is-coming-to-node-23 to prepare for future Node native TypeScript support. Signed-off-by: Fernando Fernández <[email protected]>
1 parent 56c8393 commit ad8cc2c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

frontend/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"extends": "@jellyfin-vue/configs/typescript",
33
"compilerOptions": {
4+
"lib": [
5+
"ESNext",
6+
"DOM",
7+
"WebWorker"
8+
],
49
"types": [
510
"axios",
611
"@intlify/unplugin-vue-i18n/messages",

packages/configs/typescript/base.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"esModuleInterop": true,
88
"resolveJsonModule": true,
99
"sourceMap": true,
10+
"declaration": true,
11+
"composite": true,
12+
"declarationMap": true,
1013
"strict": true,
1114
"skipLibCheck": true,
1215
"noEmit": true,
@@ -19,6 +22,9 @@
1922
"experimentalDecorators": true,
2023
"removeComments": true,
2124
"verbatimModuleSyntax": true,
25+
"noUncheckedIndexedAccess": true,
26+
"noImplicitOverride": true,
27+
"noFallthroughCasesInSwitch": true,
2228
"incremental": true,
2329
"tsBuildInfoFile": "../../../node_modules/.cache/tsconfig.tsbuildinfo",
2430
"paths": {

0 commit comments

Comments
 (0)