Skip to content

Commit 6df643c

Browse files
committed
build: trim tsconfig.json down to the options actually needed
Drop allowSyntheticDefaultImports (implied by esModuleInterop), resolveJsonModule (no JSON is imported from src), and typeRoots/types (no ./typings directory exists and skipLibCheck already avoids the @types conflicts they worked around). Switch moduleResolution to bundler so node_modules packages still resolve without needing resolveJsonModule.
1 parent 75f7aaf commit 6df643c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"allowJs": true,
44
"checkJs": true,
55
"skipLibCheck": true,
6-
"allowSyntheticDefaultImports": true,
76
"jsx": "preserve",
87
"target": "esnext",
98
"module": "esnext",
9+
"moduleResolution": "bundler",
1010
"lib": [ "dom", "esnext" ],
1111
"noEmit": true,
1212
"isolatedModules": true,
@@ -15,13 +15,7 @@
1515
"noUnusedParameters": true,
1616
"noImplicitReturns": true,
1717
"noFallthroughCasesInSwitch": true,
18-
"ignoreDeprecations": "5.0",
19-
"importsNotUsedAsValues": "error",
20-
"moduleResolution": "node",
21-
"esModuleInterop": true,
22-
"resolveJsonModule": true,
23-
"typeRoots": [ "./typings", "./node_modules/@types" ],
24-
"types": []
18+
"esModuleInterop": true
2519
},
2620
"include": [ "src/**/*" ]
2721
}

0 commit comments

Comments
 (0)