add: tsconfig.json
This configures TS to look at JS files as well, so that IDEs like VSCode can provide better edit-time checks
This commit is contained in:
parent
ffc3e2f423
commit
ac1e2b3c79
1 changed files with 19 additions and 0 deletions
19
tsconfig.json
Normal file
19
tsconfig.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2022",
|
||||||
|
"lib": ["ES2021", "DOM"],
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"downlevelIteration": true,
|
||||||
|
"jsx": "preserve",
|
||||||
|
// Check JS files too
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
|
// Used for temp builds
|
||||||
|
"outDir": "build",
|
||||||
|
"moduleResolution": "Node",
|
||||||
|
"module": "ESNext"
|
||||||
|
},
|
||||||
|
"exclude": ["node_modules", "build"]
|
||||||
|
}
|
Loading…
Reference in a new issue