I looked through caniuse.com and it seemed like almost much all features were supported by newer browsers. Curious to see whether this'll work out or if everything will blow up at some point.
24 lines
603 B
JSON
24 lines
603 B
JSON
{ // See also https://aka.ms/tsconfig
|
|
"include": [ "scripts/**/*" ],
|
|
|
|
"compilerOptions": {
|
|
"target": "ES2022", // Should be fine according to caniuse.com
|
|
"module": "ES2015",
|
|
"rootDir": "scripts",
|
|
"outDir": "target/static",
|
|
"allowJs": true,
|
|
|
|
// Misc
|
|
// TODO Source maps?
|
|
"forceConsistentCasingInFileNames": true,
|
|
"newLine": "lf",
|
|
"removeComments": true,
|
|
|
|
// Type checking
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitOverride": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"strict": true,
|
|
}
|
|
}
|