Set up typescript project

This commit is contained in:
Joscha 2023-08-03 14:32:49 +02:00
parent 838844a9d8
commit 658c523e9c
3 changed files with 32 additions and 0 deletions

4
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"json.format.keepLines": true,
"typescript.format.semicolons": "insert",
}

5
static/main.ts Normal file
View file

@ -0,0 +1,5 @@
function main() {
alert("Hello world!");
}
main();

23
tsconfig.json Normal file
View file

@ -0,0 +1,23 @@
{ // See also https://aka.ms/tsconfig
"include": [ "static/**/*" ],
"compilerOptions": {
"target": "ES2015",
"module": "ES2015",
"rootDir": "static",
"outDir": "target/static",
// Misc
// TODO Source maps?
"forceConsistentCasingInFileNames": true,
"newLine": "lf",
"removeComments": true,
// Type checking
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"strict": true,
}
}